redis.db.expires
Number of keys with an expirationDimensions:None
Summary
Current number of keys in a specific database that have an expiration time set. Monitoring this metric helps ensure that cache entries and temporary data have proper lifecycle management. A decreasing ratio of expiring keys to total keys may indicate applications are not setting TTLs, leading to unbounded memory growth. Cross-reference with eviction metrics to detect scenarios where keys without TTLs force eviction of valuable cached data.
Interface Metrics (3)
Sources
Related Insights (1)
Expiring Keys Without TTL Monitoring Causes Memory Leakswarning
When redis.persist count is high relative to redis.db.expires, many keys lack TTLs and will accumulate indefinitely, causing memory growth. redis.keyspace.avg_ttl can indicate if TTL values are too long for workload patterns.
▸