56 results available
Sign in
Skills directory

redis-observability

redis

·

Last changed
Hardened

This skill has been hardened by Chainguard

Last changed

This version passed the hardening gate. Hardening applied 6 targeted changes and preserved all other text. Classified findings before hardening: 2. Classified findings closed: 0. Classified findings remaining: 2. Unclassified scanner findings remaining: 0. Review findings closed: 2. Review findings remaining: 7.


Open before hardening

2

Medium
Open after hardening

2

Medium

Expand
File
Group
Subtype
Severity
Status
SKILL.md

Obfuscation & Evasion

Trigger-based activation

Medium
Open
references/commands.md

Obfuscation & Evasion

Trigger-based activation

Medium
Open

2 findings


SKILL.md

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.

MetricWhat it tells youAlert 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.

TopicCommand

Slow commands

SLOWLOG GET 10 / SLOWLOG LEN

Server snapshot

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. Useful during development and incident response; not a replacement for exporting metrics to your monitoring system.

References

Install

Install with chainctl
chainctl skill install public/redis/redis-observability:latest
Get started with chainctl
View source

Harden your own skills

Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.

Provenance

Upstream sourcehttps://github.com/redis/agent-skills
Upstream commitef0caa10d35587cb461f4cfb5e7d2b2917bf772c
OCI reference

skills.cgr.dev/public/github.com/redis/skills/redis-observability:latest

License

MIT

Files

HARDENING.md

LICENSE

SKILL.md

references/commands.md

references/metrics.md


The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.