Redis integration for Grafana Cloud
Redis is an in-memory data structure store frequently used as a key-value data store, cache, and message broker. The Redis integration enables the agent to send metrics to Grafana Cloud.
This integration includes three useful alerts and a pre-built dashboard to help monitor and visualize Redis metrics.
Install Redis integration for Grafana Cloud
- In your Grafana Cloud instance, click Integrations and Connections (lightning bolt icon).
- Navigate to the Redis tile and review the prerequisites. Then click Install integration.
- Once the integration is installed, follow the steps on the Configuration Details page to setup Grafana Agent and start sending Redis metrics to your Grafana Cloud instance.
Post-install configuration for the Redis integration
It is recommended to configure a separate user for the Agent, and give it only the strictly mandatory security privileges necessary for monitoring your node, as per the official documentation.
Making sure to change the redis_addr
to the address of the Redis server you want to monitor in the agent config:
integrations:
redis_exporter:
enabled: true
redis_addr: 'redis:6379'
For a full description of configuration options, including guidance on monitoring more than one Redis server, see redis_exporter_config
in the Agent documentation.
Dashboards
The Redis integration installs the following dashboards in your Grafana Cloud instance to help monitor your metrics.
- Redis Dashboard for Prometheus Redis Exporter 1.x
Overview
Alerts
The Redis integration includes the following useful alerts:
Group: redis
Alert | Description |
---|---|
RedisDown | Critical: Redis down (instance {{ $labels.instance }}) |
RedisOutOfMemory | Warning: Redis out of memory (instance {{ $labels.instance }}) |
RedisTooManyConnections | Warning: Redis too many connections (instance {{ $labels.instance }}) |
Metrics
The following metrics are automatically written to your Grafana Cloud instance by connecting your Redis instance through this integration:
- redis_blocked_clients
- redis_commands_duration_seconds_total
- redis_commands_total
- redis_connected_clients
- redis_connected_slaves
- redis_db_keys
- redis_db_keys_expiring
- redis_evicted_keys_total
- redis_keyspace_hits_total
- redis_keyspace_misses_total
- redis_master_last_io_seconds_ago
- redis_memory_fragmentation_ratio
- redis_memory_max_bytes
- redis_memory_used_bytes
- redis_memory_used_rss_bytes
- redis_total_system_memory_bytes
- redis_up
Changelog
# 0.0.3 - May 2022
- Update mixin to latest version:
- Fix selector
# 0.0.2 - October 2021
- Update mixin to latest version:
- Update queries to use $\_\_rate_interval
# 0.0.1 - October 2020
- Initial release
Cost
By connecting your Redis instance to Grafana Cloud you might incur charges. To view information on the number of active series that your Grafana Cloud account uses for metrics included in each Cloud tier, see Active series and dpm usage and Cloud tier pricing.