Whether you use Redis as a database, cache, or message queue, this integration helps you track problems with your Redis servers and the parts of your infrastructure that they serve. The Datadog Agent's Redis check collects metrics related to performance, memory usage, blocked clients, slave connections, disk persistence, expired and evicted keys, and many more.
The Redis check is included in the Datadog Agent package, so you don't need to install anything else on your Redis servers.
Follow the instructions below to configure this check for an Agent running on a host. For containerized environments, see the Containerized section.
redisdb.d/conf.yamlfile, in the
conf.d/folder at the root of your Agent's configuration directory. The following parameters may require updating. See the sample redisdb.d/conf.yaml for all available configuration options.
init_config: instances: ## @param host - string - required ## Enter the host to connect to. - host: localhost ## @param port - integer - required ## Enter the port of the host to connect to. port: 6379
Available for Agent >6.0
Collecting logs is disabled by default in the Datadog Agent, enable it in your
Uncomment and edit this configuration block at the bottom of your
logs: - type: file path: /var/log/redis_6379.log source: redis sourcecategory: database service: myapplication
serviceparameter values and configure them for your environment. See the sample redisdb.yaml for all available configuration options.
For containerized environments, see the Autodiscovery Integration Templates for guidance on applying the parameters below.
Available for Agent v6.5+
Collecting logs is disabled by default in the Datadog Agent. To enable it, see Docker log collection.
Run the Agent's status subcommand and look for
redisdb under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
The Redis check does not include any events.
CRITICAL if the Agent cannot connect to Redis to collect metrics, otherwise returns
CRITICAL if this Redis instance is unable to connect to its master instance, otherwise returns
Agent cannot connect
redisdb ------- - instance #0 [ERROR]: 'Error 111 connecting to localhost:6379. Connection refused.' - Collected 0 metrics, 0 events & 1 service chec
Check that the connection info in
redisdb.yaml is correct.
Agent cannot authenticate
redisdb ------- - instance #0 [ERROR]: 'NOAUTH Authentication required.' - Collected 0 metrics, 0 events & 1 service check
Additional helpful documentation, links, and articles: