
Redis Observability
Monitor Redis performance with built-in observability commands to track metrics, identify slow queries, and troubleshoot memory and connection issues.
Install
npx skills add https://github.com/redis/agent-skills --skill redis-observabilityWhat is this skill?
- Track 7+ critical metrics (memory, connections, hit ratio) with alert thresholds
- Debug slow queries instantly with SLOWLOG and FT.PROFILE commands
- Analyze memory usage and index performance with MEMORY DOCTOR and FT.INFO
Adoption & trust: 1 installs on skills.sh; 70 GitHub stars; trending (+100% hot-view momentum).
Recommended Skills
Azure Kubernetesmicrosoft/azure-skills
Github Actions Docsxixu-me/skills
Deploy To Vercelvercel-labs/agent-skills
Vercel Cli With Tokensvercel-labs/agent-skills
Turborepovercel/turborepo
Docker Expertsickn33/antigravity-awesome-skills
Journey fit
Primary fit
This skill belongs in operate/monitoring because it provides the observability commands and metrics needed to maintain Redis health in production. Monitoring is the core subphase since the skill focuses on tracking key metrics, using SLOWLOG, MEMORY DOCTOR, and INFO commands to catch issues before they impact users.
SKILL.md
READMESKILL.md - Redis Observability
{ "name": "redis-observability", "version": "1.0.0", "description": "Redis observability — key metrics to monitor (INFO), debugging commands (SLOWLOG, MEMORY DOCTOR, FT.PROFILE), Redis Insight.", "author": { "name": "Redis", "email": "support@redis.com" }, "homepage": "https://redis.io", "repository": "https://github.com/redis/agent-skills", "license": "MIT", "keywords": ["redis", "observability", "monitoring", "metrics", "slowlog"] } # Use Observability Commands for Debugging Redis provides built-in commands for monitoring and debugging. **Key commands:** ``` # Slow query log - find slow commands SLOWLOG GET 10 SLOWLOG LEN SLOWLOG RESET # Server info - comprehensive stats INFO all INFO memory INFO stats INFO replication INFO clients # Memory analysis MEMORY DOCTOR MEMORY STATS MEMORY USAGE mykey # Client connections CLIENT LIST CLIENT INFO # Index info (RQE) FT.INFO idx:products FT.PROFILE idx:products SEARCH QUERY "@name:laptop" ``` **Correct:** Check SLOWLOG regularly. ```python # Get recent slow queries slow_queries = redis.slowlog_get(10) for query in slow_queries: print(f"Duration: {query['duration']}μs, Command: {query['command']}") ``` Reference: [Redis Monitoring](https://redis.io/docs/latest/operate/oss_and_stack/management/optimization/latency/) # Monitor Key Redis Metrics Track these metrics to catch issues before they impact users. | Metric | What It Tells You | Alert When | |--------|-------------------|------------| | `used_memory` | Current memory usage | > 80% of maxmemory | | `connected_clients` | Number of connections | Sudden spikes or drops | | `blocked_clients` | Clients waiting on blocking ops | > 0 sustained | | `instantaneous_ops_per_sec` | Current throughput | Significant drops | | `keyspace_hits/misses` | Cache hit ratio | Hit ratio < 80% | | `rejected_connections` | Connection limit issues | > 0 | | `rdb_last_save_time` | Last persistence snapshot | Too old | **Correct:** Export metrics to your monitoring system. ```python # Get key metrics info = redis.info() print(f"Memory: {info['used_memory_human']}") print(f"Connections: {info['connected_clients']}") print(f"Ops/sec: {info['instantaneous_ops_per_sec']}") print(f"Hit ratio: {info['keyspace_hits'] / (info['keyspace_hits'] + info['keyspace_misses']) * 100:.1f}%") ``` **Redis Insight:** Use Redis Insight for visual monitoring, query profiling, and debugging. It includes Redis Copilot for natural language queries. Reference: [Redis Insight](https://redis.io/insight/) --- name: redis-observability description: 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. license: MIT metadata: author: Redis, Inc. version: "0.1.0" --- # Redis Observability What to watch, what to run, and what to alert on. Covers the metrics every Redis deployment should monitor and the built-in commands for ad-hoc diagnosis. ## When to apply - Setting up monitoring or alerts for a Redis instance. - Diagnosing a Redis performance regression (high latency, memory pressure, connection storms). - Profiling a slow `FT.SEARCH` or pipeline. - Wiring Redis metrics into Prometheus, Datadog, CloudWatch, or similar. ## 1. Monitor these metrics These come from `INFO` and should be exported to your monitoring system. | Metric | What it tells you | Alert when | |---|---|---| | `used_memory` | Current memory usage | > 80% of `maxmemory` | | `connected_clients` | Open connections | Sudden spikes or drops | | `blocked_clients` | Clients waiting on blocking ops | > 0 sustained | | `instantaneous_ops_per_sec` | Current th