Technologies/Redis/redis.slowlog.length
RedisRedisMetric

redis.slowlog.length

Number of entries in the slow log
Dimensions:None
Available on:Native (1)PrometheusPrometheus (1)

Summary

Current number of entries in Redis's slow query log, which records commands exceeding the slowlog-log-slower-than threshold (default 10ms). A growing count indicates accumulating slow commands faster than they age out of the log. This metric helps identify performance issues from expensive O(N) operations like KEYS, SMEMBERS on large sets, or blocking commands. Use the insight about slow query backlog masking connection pool exhaustion to prioritize investigation.

Interface Metrics (2)
Native
Number of entries in the slow log
Dimensions:None
PrometheusPrometheus
Number of slow log entries
Dimensions:None
Related Insights (2)
Slow Query Backlog Masks Redis Connection Pool Exhaustionwarning

Redis slowlog entries accumulating (redis.slowlog.length rising) can indicate operations blocking on network or disk I/O, exhausting connection pools and causing cascading failures in dependent services even when Redis CPU appears healthy.

Command Latency Spikes from Expensive O(N) Operationswarning

Certain Redis commands have O(N) complexity (KEYS, SMEMBERS, HGETALL, LRANGE without limit) and can cause latency spikes when executed on large data structures. redis.commands.usec tracking per command identifies hot spots.