Logo Vincent
Back to all posts

redis-exporter

DevOps

Preface

Using Prometheus + Grafana to build a monitoring system,

this article covers how to monitor Redis.

Steps

Install redis exporter

docker run -d \
  --name redis_exporter \
  -p 9121:9121 \
  -e REDIS_ADDR=172.31.44.128:6379 \
  -e REDIS_PASSWORD=xxx \
  docker_url

Modify the Prometheus config file

  - job_name: 'keydb'
    static_configs:
      - targets:
        - 172.31.44.128:6379
    metrics_path: /scrape
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 172.31.44.128:9121

Add a Grafana dashboard

Add the default Redis dashboard to Grafana.

URL: https://grafana.com/grafana/dashboards/11835-redis-dashboard-for-prometheus-redis-exporter-helm-stable-redis-ha/

© 2026 Vincent. All rights reserved.