This extension documentation is now deprecated and will no longer be updated. We recommend using the new Redis Enterprise extension for improved functionality and support.
Redis is an open-source, in-memory, key-value database (or "data structure server") with optional durability. Redis is commonly used as a database, cache, queue, and message broker (publish and subscribe). Out of the box, Dynatrace monitors the top Redis metrics, including response time, memory fragmentation, cache hit ratio, cache usage, number of connections, hits, misses, and more.
Dynatrace supports Redis running inside Docker containers with the following requirements:
docker run redis
With Redis monitoring enabled globally, Dynatrace automatically collects Redis metrics whenever a new host running Redis is detected in your environment.
The host settings link opens Settings > Monitoring > Monitoring overview to the Hosts tab. If you decide to configure Redis per host rather than globally, switch Redis monitoring off globally and select the host settings to begin configuring Redis per host. See Enabling Redis monitoring for individual hosts below for details.
You can enable Redis monitoring for specific hosts rather than globally.
If Redis is listed as one of the globally monitored technologies, you need to turn off global monitoring for Redis and then configure Redis monitoring on the host level. Click the enabled globally link and set the Redis switch to the Off position, then return to host configuration.
Dynatrace automatically recognizes Redis master and replica instances and monitors their replication. Redis master and replica instances must be fully synchronized to maintain optimal performance and stability of your Redis servers.
The Current status indicator on the Redis process overview page displays the health of your Redis servers. To analyze server status changes over time, select a time frame in the Replica state chart or check the Status chart to see the exact status distributions during a given timeframe.
Use event-specific settings to adjust the conditions under which alerts are sent out to notify you. To access plugin event settings, go to Settings > Anomaly detection > Extension events and find the Redis entries:
You can turn these events on or off, and you can configure the conditions under which a corresponding alert is raised.
Redis Sentinel is the name of the process responsible for the availability of your Redis deployment. The performance of the Redis Sentinel process is measured based on Response time.
To view metric charts on the Redis process group level:
maxmemory
parameter is configured.INFO
requests. Redis typically responds within milliseconds.Valuable Redis metrics are displayed on each Redis process page within an intuitive infographic.
INFO
requests. Redis typically responds within milliseconds.1.0
indicates that Redis requires more memory than is available on the system and is forced to use swap memory resources.1.0
(but not exceeding 1.5
) is a healthy fragmentation ratio. Fragmentation is taking place and this Redis instance is consuming more physical memory than has been requested, but fragmentation is not excessive.1.5
indicates excessive fragmentation. To allow the operating system to recover memory that has become unusable due to fragmentation, restart the Redis server.On the Process details page, select the Further details tab to show the following additional metrics for the selected Redis server instance:
Commands
Memory
maxmemory
parameter is configured.Expired keys Number of key expiration events. Expiration events are triggered when keys are deleted by Redis. Please be aware that expiration events are not triggered once a key’s TTL (Time to Live) status falls to zero.
Clients
maxclients
limit. By default, recent versions of Redis don’t close connections with clients, even when clients are idle for a long time—connections remain open indefinitely. You have the option of configuring a timeout, in which case client connections can be closed when they remain idle for a certain period of time. Timeouts are configured in the file redis.conf
.Replication
The slow log records queries that have exceeded their specified execution times.
The slow log can be configured with two parameters:
slowlog-log-slower-than
tells Redis the execution time (in microseconds) that, if exceeded, means the query was slow and will be recorded in the slow log.slowlog-max-len
is the maximum number of queries that are retained in the slow log.This table is based on standard metrics descriptions.
Metric
Description
Total commands processed
The number of commands processed by Redis per second.
Memory usage
The percentage of utilized Redis memory. This metric is visible only when the Redis maxmemory
parameter is configured.
Connected
The number of client connections (excluding connections from replicas).
Blocked
The number of blocked clients.
Rejected connections
The number of connections rejected because of the maxclients
limit. By default, recent versions of Redis don’t close connections with clients, even when clients are idle for a long time—connections remain open indefinitely. You have the option of configuring a timeout, in which case client connections can be closed when they remain idle for a certain period of time. Timeouts are configured in the file redis.conf
.
Total connections received
The number of connections accepted by the server.
Connected replicas
The number of connected replicas. This metric is visible for the master and those replicas that are connected to other replicas.
Keyspace hits
The number of successful key lookups in the main dictionary.
Max memory
The maximum memory allowed in Redis cache. You can adjust this parameter as required.
Evicted keys
The number of keys removed from cache to free up memory for new items. An increasing number of evicted keys can be a symptom of high memory usage.
Cache hit ratio
The percentage of key lookups in the main dictionary that were successful.
Expired keys
The number of key expiration events. Expiration events are triggered when keys are deleted by Redis. Expiration events are not triggered once a key’s TTL (Time to Live) status falls to zero.
# of keys
The number of keys in the selected database.
Expires
The number of keys that have the TTL parameter.
Average TTL
The estimated average TTL of keys on the server.
Slow queries
The number of queries recorded in the Redis slow log.
The slow log records queries that have exceeded their specified execution times.
The slow log can be configured with two parameters:
slowlog-log-slower-than
tells Redis the execution time (in microseconds) that, if exceeded, means the query was slow and will be recorded in the slow log.slowlog-max-len
is the maximum number of queries that are retained in the slow log.