Agent Skills › vemetric/vemetric › redis-observability

redis-observability

GitHub

提供 Redis 可观测性指导,涵盖关键监控指标、内置诊断命令及工具使用。适用于配置监控告警、排查性能问题、分析慢查询及集成 Prometheus 等监控系统。

.agents/skills/redis-observability/SKILL.md vemetric/vemetric

Trigger Scenarios

设置 Redis 监控或告警 诊断 Redis 性能回归 分析慢查询 将 Redis 指标接入监控系统

Install

npx skills add vemetric/vemetric --skill redis-observability -g -y
More Options

Non-standard path

npx skills add https://github.com/vemetric/vemetric/tree/main/.agents/skills/redis-observability -g -y

Use without installing

npx skills use vemetric/vemetric@redis-observability

指定 Agent (Claude Code)

npx skills add vemetric/vemetric --skill redis-observability -a claude-code -g -y

安装 repo 全部 skill

npx skills add vemetric/vemetric --all -g -y

预览 repo 内 skill

npx skills add vemetric/vemetric --list

SKILL.md

Frontmatter
{
    "name": "redis-observability",
    "license": "MIT",
    "metadata": {
        "author": "Redis, Inc.",
        "version": "0.1.0"
    },
    "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."
}

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

Version History

  • 4e8800b Current 2026-09-28 16:05

Same Skill Collection

.agents/skills/clickhouse-architecture-advisor/SKILL.md
.agents/skills/clickhouse-best-practices/SKILL.md
.agents/skills/clickhouse-js-node-coding/SKILL.md
.agents/skills/infra-clickhouse/SKILL.md
.agents/skills/redis-clustering/SKILL.md
.agents/skills/redis-connections/SKILL.md
.agents/skills/redis-core/SKILL.md
.agents/skills/redis-security/SKILL.md
.agents/skills/chdb-datastore/SKILL.md
.agents/skills/chdb-sql/SKILL.md
.agents/skills/clickhouse-js-node-troubleshooting/SKILL.md
.agents/skills/redis-search/SKILL.md

Metadata

Files
0
Version
4e8800b
Hash
801b2a3f
Indexed
2026-09-28 16:05

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-30 04:23
浙ICP备14020137号-1