Index of every page on this site: llms.txt
All skills
redis avatar

/redis-observability

@74708da official
by redisredis/agent-skills178 stars
36
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/redis/agent-skills/redis-observability

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈124 tokens for metadata: the name and description. ≈765 when used: this file. ≈518 more on demand in 2 files.

Description uses 6.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈494 characters, or 6.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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 throughput Significant drops
keyspace_hits / keyspace_misses Cache hit ratio Hit ratio < 80%
rejected_connections Hit maxclients cap > 0
rdb_last_save_time 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%}")

See references/metrics.md.

2. Built-in commands for debugging

Reach for these when something looks off.

Topic Command
Slow commands SLOWLOG GET 10 / SLOWLOG LEN / SLOWLOG RESET
Server snapshot INFO all (or INFO memory / INFO stats / INFO clients / INFO replication)
Memory diagnostics MEMORY DOCTOR / MEMORY STATS / MEMORY USAGE <key>
Connections CLIENT LIST / CLIENT INFO
RQE / Search FT.INFO <idx> / FT.PROFILE <idx> SEARCH QUERY "..."

The two most useful for incident triage:

  • SLOWLOG GET to find queries that exceeded the slowlog-log-slower-than threshold (10ms by default). The output shows the exact command and duration in microseconds.
  • MEMORY DOCTOR for memory pressure — it returns a one-paragraph summary of what's unusual about memory usage right now.
for entry in redis.slowlog_get(10):
    print(f"{entry['duration']}μs  {entry['command']}")

See references/commands.md.

3. Redis Insight

For interactive use (running queries, browsing keys, profiling indexes), Redis Insight is the official GUI. It surfaces the same SLOWLOG / INFO / FT.PROFILE data visually and includes Redis Copilot for natural-language queries. Useful during development and incident response; not a replacement for exporting metrics to your monitoring system.

References

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides instructions and Python code snippets for monitoring Redis performance and diagnosing issues using built-in commands like INFO and SLOWLOG. It is well-documented and exclusively uses official Redis resources.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 74708da. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 6 months ago
metadata
{
  "author": "Redis, Inc.",
  "version": "0.1.0"
}
  • Performance
  • redis
  • monitoring
  • observability
  • metrics
  • incident-response
  • slowlog
  • memory
  • prometheus
  • datadog

README badge

README badge for redis/agent-skills/redis-observability

Identifies which Redis metrics to monitor (memory, connections, hit ratio, ops/sec, rejected connections), which built-in commands to run during incidents (SLOWLOG, INFO, MEMORY DOCTOR, CLIENT LIST, FT.PROFILE), and when to use Redis Insight. Apply when setting up alerts, diagnosing performance regressions, or profiling slow queries.

Generated from the current SKILL.md.

Does this skill cover setting up Prometheus or Datadog exporters?
No. The skill identifies which metrics to export (used_memory, hit ratio, ops/sec, etc.) and which commands to run, but does not include exporter configuration or integration code.
Can I use this skill to profile slow FT.SEARCH queries?
Yes. The skill covers FT.PROFILE and FT.INFO commands for diagnosing slow search queries, and mentions Redis Insight as a GUI option for interactive profiling.
Does this skill apply to Redis Cluster or only standalone instances?
The skill focuses on core observability principles (monitoring metrics, using built-in commands) that apply broadly, but does not explicitly address Cluster-specific considerations.
What's the difference between this skill and Redis Insight?
This skill is reference material on what to monitor and which commands to run; Redis Insight is a GUI tool. The skill recommends Insight for interactive debugging during development or incidents, but emphasizes exporting metrics to your monitoring system as the primary approach.

Generated from the current SKILL.md. These answers refresh after source changes.