Monitoring Redis with Datadog - Self-Hosted vs. Managed
When monitoring Redis with Datadog, the integration you use and where you write its configuration change depending on where Redis runs. On your own servers and containers, use the Agent's redisdb check; for ElastiCache, Redis Cloud, and Redis Enterprise, follow the conventions of each integration.
Where Redis Runs Decides the Integration You Use and Where Its Configuration Goes
The first thing to decide when monitoring Redis is which integration to use. In the official Datadog documentation, Redis you place on your own hosts or containers is monitored with the Redis check bundled with the Agent, and managed Redis is monitored with each provider's integration. The Agent's Redis check requires no additional installation on the Redis server and is available with Agent 6.0.0 and later (the minimum as of October 2026; source: Redis).
| Where it runs | Integration to use | Where configuration goes | Names of the values that arrive |
|---|---|---|---|
| Redis installed directly on a host | Redis (check name redisdb) | The Agent's redisdb.d/conf.yaml | redis.* |
| Docker or Amazon ECS containers | The same Redis check | Docker labels on the Redis container | redis.* |
| Kubernetes pods | The same Redis check | Pod annotations | redis.* |
| Amazon ElastiCache | The Amazon ElastiCache integration (can be combined with the Agent) | The AWS integration UI, and the redisdb configuration of an Agent on a separate machine | aws.elasticache.* and redis.* |
| Redis Cloud | The Redis Cloud integration | openmetrics_endpoint in the Agent configuration | rdsc.* |
| Self-managed Redis Enterprise | The Redis Enterprise integration | openmetrics_endpoint in the Agent configuration | rdse.* |
As the right-hand column shows, when the location differs, the names of the values that arrive change even for the same Redis. The documentation explicitly states that the Redis Cloud integration is for Redis on Redis Cloud and cannot be used for Redis Enterprise. Conversely, the Redis Enterprise integration targets Redis Enterprise installed in your own data center or private cloud. These two are integrations you add to the Agent afterward, installed as in datadog-agent integration install -t datadog-redis_cloud==<VERSION>, copying the version from the official documentation. For both, Redis's own support is listed as the contact when you run into trouble. If you decide from the location which value names to use before building dashboards and monitors, you will not have to rewrite queries later.
The Check Name You Write for the Agent Is redisdb, Not redis
Although the integration is named Redis, the Agent configuration file is redisdb.d/conf.yaml under conf.d/, and in Docker labels and Kubernetes annotations you also write redisdb as the check name. The minimum configuration is the connection's host and port, and the official documentation's example for hosts looks like this (as of October 2026; source: Redis).
init_config:
instances:
- host: localhost
port: 6379
# username: <USERNAME>
# password: <PASSWORD>When you finish, restart the Agent and confirm that redisdb appears in the Checks section of the Agent's status subcommand output. In containers, write the same content as an Autodiscovery template; Kubernetes annotations come in two forms depending on the Agent version.
| Form | Supported Agent | How to write it |
|---|---|---|
| v2 | Agent 7.36 and later | Put the redisdb configuration together in a single ad.datadoghq.com/<CONTAINER_NAME>.checks |
| v1 | Agents earlier than 7.36 | Split it into three: check_names, init_configs, and instances |
Whether the connection works is handled by the service checkredis.can_connect, which returns CRITICAL if the Agent cannot connect. On the replica side, redis.replication.master_link_status becomes CRITICAL when the replica cannot connect to the master. The Redis check does not include any events.
Authentication Comes in Two Forms: a Password, or an ACL User in Redis 6 and Later
When Redis requires authentication, write password; when you separate users with the ACLs introduced in Redis 6, also write username. When using ACLs, the official documentation requires that the monitoring user be allowed the ACL rule +config|get +info +slowlog|get. In addition, grant DB Viewer at the database level and, in cluster environments, Cluster Viewer or higher. The three rules correspond to the CONFIG GET, INFO, and SLOWLOG GET commands respectively, a list of read-only commands (as of October 2026; source: Redis).
| Output | What is happening | What to fix |
|---|---|---|
Error 111 connecting to localhost:6379. Connection refused. | Redis does not respond at the configured connection target | The connection information in redisdb.yaml |
NOAUTH Authentication required. | The Agent connected without a password to a Redis that requires authentication | password in redisdb.yaml |
To avoid writing the password as is in container configuration, the official documentation's example uses the template variable %%env_REDIS_PASSWORD%% and passes the environment variable REDIS_PASSWORD to the Agent container. Because the Redis check does not support IAM authentication for Amazon ElastiCache, connect with a Redis-side username and password even for ElastiCache. I recommend creating a separate monitoring user with ACLs. That way you do not have to place the application's password in the Agent configuration, and you can limit permissions to reads.
For ElastiCache, Connect CloudWatch Values and Agent Values Through Tags
For Redis on ElastiCache, there are two ways to collect values. One is to enable ElastiCache metric collection in the AWS integration UI and install the Amazon ElastiCache integration, so that CloudWatch values arrive as aws.elasticache.*. Add elasticache:DescribeCacheClusters, elasticache:ListTagsForResource, and elasticache:DescribeEvents to Datadog's IAM policy. The other is combining it with the Agent, which the official documentation recommends. An Agent on a separate machine such as EC2 connects to the ElastiCache endpoint and also collects the redis.* values that Redis itself returns (as of October 2026; source: Amazon ElastiCache).
| Method | Values that arrive | Connection credentials | What to watch for |
|---|---|---|---|
| AWS integration only | aws.elasticache.* | Datadog's IAM role | This role cannot collect the values that the Redis check returns |
| Combined with the Agent | aws.elasticache.* and redis.* | The IAM role plus Redis connection settings (username and password if authentication is enabled) | Agent values are tied to the EC2 instance where the Agent runs |
What to watch for in the combined approach is the bottom-right cell of the table: Agent values are recorded as belonging to the machine where the Agent runs, not to the ElastiCache node. So write the endpoint URL you looked up in the AWS console in host of the redisdb configuration, add the cluster ID to tags, and align the values from both paths under the same tag. In the official documentation's example, the tag is attached in the form cacheclusterid:replica-001, and the ElastiCache cache hit values and the Redis latency values are overlaid on one graph. Without the tag, Redis values line up as values of the Agent's machine and are not tied to the ElastiCache-side values.
The Entry Point for Finding Slow Commands Is redis.slowlog.micros
When investigating Redis slowness in Datadog, the first thing to open is the values starting with redis.slowlog.micros. Redis records in the slow log the commands whose execution time exceeded the threshold set by slowlog-log-slower-than. The maximum number of entries it can record is determined by slowlog-max-len (source: SLOWLOG GET). From this slow log, the Redis check produces the average, median, 95th percentile, and maximum of the durations, plus a per-second count of entries (as of October 2026; source: Redis).
| Value | Contents | When to read it |
|---|---|---|
redis.slowlog.micros.max | The maximum duration of commands that entered the slow log (microseconds) | Whether there was a single heavy command |
redis.slowlog.micros.95percentile | The same, at the 95th percentile | Whether slow commands are continuing |
redis.slowlog.micros.count | The per-second count of commands recorded in the slow log | Whether commands exceeding the threshold have increased |
redis.info.latency_ms | The latency of the INFO command the Agent issues | Whether Redis has become slow to respond |
redis.command.usec_per_call | CPU time per call for each command (enabled with command_stats) | Which kind of command is heavy |
According to the official Redis description, slow log durations do not include I/O such as communicating with the client or sending the reply; only the time spent executing the command is recorded. When the application sees slowness but the slow log values are quiet, that is a reason to suspect the network or connection side. In that case, the next step is to look in the application's APM traces at how long the spans for calls to Redis are waiting. When you want a breakdown by command type, enabling command_stats in the redisdb configuration delivers call counts and CPU time tagged with command.
Collect Logs From Files, and Traces on the Side of the Applications That Call Redis
Log collection is disabled by default in the Agent, so first enable it in datadog.yaml, uncomment the logs block at the end of redisdb.d/conf.yaml, and adjust path and service to your environment. In containers, write the same configuration in Docker labels or Kubernetes annotations (as of October 2026; source: Redis). The basics of having the Agent read files are summarized in setting up log collection, and container Agent configuration in configuring the Agent in Docker.
| What to collect | Where to write it | Example from the official documentation |
|---|---|---|
| Host logs | datadog.yaml and redisdb.d/conf.yaml | logs_enabled: true, type: file, path: /var/log/redis_6379.log, source: redis |
| Container logs | Docker labels or Kubernetes annotations | source and service in com.datadoghq.ad.logs |
| Traces (Docker) | Environment variables of the Agent container and the application container | DD_APM_ENABLED, DD_APM_NON_LOCAL_TRAFFIC, DD_AGENT_HOST |
Traces are collected not by installing anything on the Redis server but by instrumenting, with APM, the applications that send requests to Redis. When running in Docker, pass DD_APM_ENABLED and DD_APM_NON_LOCAL_TRAFFIC as true to the Agent container. For the application container, tell it the name of the Agent container with DD_AGENT_HOST. Once metrics, logs, and traces are all in place, you can read the logs from the moment the slow log values spiked and trace, in one place, which application requests were waiting on Redis at the same moment.
On One Instance, Compare redis-cli INFO With the Values in the UI
As one approach, once the configuration is in, pick one Redis instance and compare the result of running INFO memory in redis-cli with redis.mem.used in the Datadog UI at the same moment. INFO's used_memory and redis.mem.used are both the amount of memory Redis has allocated (source: INFO / Redis). If they differ greatly, check whether the connection target is a different instance. Next, compare the result of SLOWLOG GET with the times of the peaks in redis.slowlog.micros.max, and identify the commands at the slow times. If you combine with ElastiCache, select the cacheclusterid tag in the infrastructure views. If aws.elasticache.* and redis.* line up under the same cluster, the two paths are connected. If only one appears, start by suspecting the spelling of the ID you wrote in tags of redisdb.