Skip to main content

Uniphore Customer Portal

Redis Monitoring

For Redis montioring we need to run an exporter to scrape the metrics from Redis and following is the command to pull the docker image and to run it:

docker pull oliver006/redis_exporter
docker run -d --name redis_exporter -p 9121:9121 oliver006/redis_exporter -redis.addr "redis://172.31.14.232:6379" -redis.password "password"

Please provide the password which is set for redis auth, along with -redis.password parameter.

Once redis-exporter docker service is running, user can get the metrics from

curl http://127.0.0.1:9121/metrics

9121 being the default port of exporter

Once we get the metrics, add /etc/prometheus/prometheus.yml following in prometheus.yml and restart the prometheus docker container:

- job_name: 'redis'
metrics_path: '/metrics'
scrape_interval: 5s
static_configs:
- targets: ['172.31.36.120:9121']

Login to Grafana and import custom dashboard (Redis.json) for Redis.

image125.PNG

The metrics that follow are visualized in Grafana dashboards:

  1. Process information

    1. Version - Installed Redis version

    2. Running - Current running state True/False

    3. Uptime - Relative up time of redis

    4. Start time - Start time of redis

    5. Used memory bytes - Number of used memory bytes

    6. Max memory bytes - Max memory bytes assigned ( in /etc/redis.conf )

    image126.PNG
  2. CPU, Clients and Memory Usage

    1. Clients - Number of connected clients

    2. Memory Usage - Memory usage percentage(Max memory to be set )

    3. Average CPU Usage - Average user and system CPU time spent in seconds

    4. Total Memory Usage - Trend of memory usage

    image127.PNG
  3. Statistics

    1. Commands Executed / Sec - Total number of commands processed

    2. Hits / Misses per sec - Trend of cache hits and cache misses

    3. Total Items per DB - Total number of keys per DB

    4. Network I/0 - Trend of input bytes total and Output bytes total

    5. Expired / Evicted - Trend of total expired keys and total evicted keys

    6. Expiring vs Not-Expiring Keys - Trend of expiring keys and non-expiring keys (total db keys - expiring keys)

    7. Command calls / sec - Total number of commands per sec

    image128.png