Loading...
Loading...
Redis observability guidance — which metrics to monitor (memory, connections, hit ratio, ops/sec, rejected connections), which built-in commands to reach for during incident triage (SLOWLOG, INFO, MEMORY DOCTOR, CLIENT LIST, FT.PROFILE), and when to use the Redis Insight GUI. Use when setting up monitoring or alerts for a Redis instance, diagnosing a performance regression, profiling a slow FT.SEARCH query, or wiring Redis metrics into Prometheus, Datadog, or similar.
npx skill4agent add redis/agent-skills redis-observabilityFT.SEARCHINFO| Metric | What it tells you | Alert when |
|---|---|---|
| Current memory usage | > 80% of |
| Open connections | Sudden spikes or drops |
| Clients waiting on blocking ops | > 0 sustained |
| Current throughput | Significant drops |
| Cache hit ratio | Hit ratio < 80% |
| Hit | > 0 |
| Last persistence snapshot | Too old vs. RPO |
info = redis.info()
hit_ratio = info["keyspace_hits"] / max(1, info["keyspace_hits"] + info["keyspace_misses"])
print(f"Memory: {info['used_memory_human']}")
print(f"Clients: {info['connected_clients']}")
print(f"Ops/sec: {info['instantaneous_ops_per_sec']}")
print(f"Hit ratio: {hit_ratio:.1%}")| Topic | Command |
|---|---|
| Slow commands | |
| Server snapshot | |
| Memory diagnostics | |
| Connections | |
| RQE / Search | |
SLOWLOG GETslowlog-log-slower-thanMEMORY DOCTORfor entry in redis.slowlog_get(10):
print(f"{entry['duration']}μs {entry['command']}")SLOWLOGINFOFT.PROFILE