redis-observability

โดย redis

แนวทางการสังเกตการณ์ Redis — ตัวชี้วัดที่ต้องติดตาม (หน่วยความจำ, การเชื่อมต่อ, อัตราการเข้าถึง, การดำเนินการต่อวินาที, การเชื่อมต่อที่ถูกปฏิเสธ), คำสั่งในตัวที่ควรใช้…

npx skills add https://github.com/redis/agent-skills --skill redis-observability

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_memoryCurrent memory usage> 80% of maxmemory
connected_clientsOpen connectionsSudden spikes or drops
blocked_clientsClients waiting on blocking ops> 0 sustained
instantaneous_ops_per_secCurrent throughputSignificant drops
keyspace_hits / keyspace_missesCache hit ratioHit ratio < 80%
rejected_connectionsHit maxclients cap> 0
rdb_last_save_timeLast persistence snapshotToo 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 commandsSLOWLOG GET 10 / SLOWLOG LEN / SLOWLOG RESET
Server snapshotINFO all (or INFO memory / INFO stats / INFO clients / INFO replication)
Memory diagnosticsMEMORY DOCTOR / MEMORY STATS / MEMORY USAGE <key>
ConnectionsCLIENT LIST / CLIENT INFO
RQE / SearchFT.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

Skills เพิ่มเติมจาก redis

docs-sync
redis
วิเคราะห์การใช้งานและการกำหนดค่าในสาขา master เพื่อค้นหาเอกสารที่ขาดหาย ไม่ถูกต้อง หรือล้าสมัยใน docs/, README.md และ README ประจำแพ็กเกจ ใช้…
redis-query-engine
redis
คำแนะนำ Redis Query Engine (RQE) ครอบคลุมการออกแบบสคีมา FT.CREATE การเลือกประเภทฟิลด์ (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR) ไวยากรณ์คำสั่งค้นหา DIALECT 2,…
redis-search
redis
คำแนะนำการค้นหา Redis ครอบคลุมการออกแบบ schema ของ FT.CREATE การเลือกประเภทฟิลด์ (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, JSON path) ไวยากรณ์คำสั่งค้นหา DIALECT 2,…
redis-security
redis
แนวทางความปลอดภัยของ Redis ครอบคลุมการรับรองตัวตน (requirepass และผู้ใช้ ACL), TLS, การควบคุมการเข้าถึงตามสิทธิ์น้อยที่สุดแบบ ACL, การจำกัดการเปิดเผยเครือข่ายผ่าน...
redis-semantic-cache
redis
คำแนะนำ Redis LangCache สำหรับการแคชเชิงความหมายของคำตอบจาก LLM บน Redis Cloud — การเรียกใช้ search/set ผ่าน SDK หรือ REST API การปรับค่าความคล้ายคลึงที่เหมาะสม,…
redis-vector-search
redis
คำแนะนำการค้นหาเวกเตอร์ของ Redis ครอบคลุมการเลือกอัลกอริทึม HNSW กับ FLAT การกำหนดค่าดัชนีเวกเตอร์ (มิติ, หน่วยวัดระยะทาง, ชนิดข้อมูล), การค้นหาแบบไฮบริดแบบกรอง…
bump-test-image
redis
อัปเดตอิมเมจทดสอบ Redis docker เริ่มต้น (redislabs/client-libs-test) ใน DEFAULT_DOCKER_CONFIG ที่ใช้ร่วมกันและ CI matrix จากนั้น force-push …
i18n
redis
ข้อกำหนดการทำสากลสำหรับอินเทอร์เฟซ RedisInsight UI (i18next) ใช้เมื่อเพิ่มหรือแก้ไขสตริงที่ผู้ใช้เห็นภายใต้ redisinsight/ui/** แก้ไข…