Redis is an open-source, networked software project that implements data structure servers. This plugin collects client connections, memory usage, rejected connectons, evicted keys, persistence metrics, etc.
Setup & Configuration
The Redis plugin is included with the Atatus Infra agent by default, please follow the below section to enable.
Copy the Redis example configuration file.
copycd /etc/atatus-infra-agent/conf.d/redis.d/ sudo cp redis.yml.template redis.yml
Update the file
/etc/atatus-infra-agent/conf.d/redis.d/redis.yml
with below configurations.copy# Metrics section metrics: # Host details - hosts: ["127.0.0.1:6379"] # Redis AUTH password. Empty by default. #password:
Restart the atatus infrastructure agent.
copysudo service atatus-infra-agent restart
Metrics
Name | Description | Type |
---|---|---|
redis.info.memory.used.value | Total number of bytes allocated by redis. | long |
redis.info.memory.fragmentation.ratio | Ratio between used_memory_rss and used_memory. | float |
redis.info.stats.keys.evicted | Number of evicted keys. | long |
redis.info.clients.blocked | Number of clients pending on a blocking call (BLPOP, BRPOP, BRPOPLPUSH). | long |
redis.info.clients.connected | Number of client connections (excluding connections from slaves). | long |
redis.info.stats.connections.rejected | Total number of connections rejected. | long |
redis.info.replication.master.link_status | Status of the link (up/down). | long |
redis.info.stats.commands_processed | Total number of commands processed. | long |
redis.info.replication.connected_slaves | Number of connected slaves. | long |
redis.info.stats.keyspace.hits | Number of successful lookup of keys in the main dictionary. | long |
redis.info.stats.keyspace.misses | Number of failed lookup of keys in the main dictionary. | long |
redis.info.persistence.rdb.last_save.changes_since | Number of changes since the last dump. | long |