Back to list
nexus-labs-automation

cache-observability

by nexus-labs-automation

Claude Code plugin for backend observability - tracing, metrics, logging for Go, Python, Node.js, Java, Rust, and .NET

0🍴 0📅 Dec 26, 2025

SKILL.md


name: cache-observability description: "Track cache hit rates, latency, and detect cache-related issues" triggers:

  • "cache metrics"
  • "Redis monitoring"
  • "cache hit rate"
  • "cache performance" priority: 2

Cache Observability

Cache is performance-critical. Track hit rate, latency, and evictions.

Key Metrics

MetricTypeDescription
cache.hitsCounterSuccessful reads
cache.missesCounterReads that missed
cache.gets.durationHistogramGET latency
cache.evictionsCounterKeys evicted
cache.memory.usedGaugeMemory consumption

Span Attributes

AttributeExampleRequired
cache.systemredis, memcachedYes
cache.operationGET, SETYes
cache.hittrue/falseYes
cache.key_prefixuser:*Recommended (not full key!)

Hit Rate

hit_rate = cache.hits / (cache.hits + cache.misses)
  • Good: >90%
  • Concerning: <80% → Check TTL, warming strategy

Issues to Detect

IssueDetectionFix
Low hit rate<80%Tune TTL, warm cache
Cache stampedeMany misses for same keyDistributed locks
High latencyp99 >10msCheck network, value size
Memory pressurememory >90% of maxEviction policy, sizing

Cache Wrapper Pattern

Before GET: Start timer
After GET:  Record duration, increment hits or misses, set cache.hit on span

Anti-Patterns

  • Full keys in metrics → High cardinality, use prefix only
  • No eviction monitoring → Can't detect memory pressure
  • Ignoring serialization time → Track total time including marshal

References

  • references/platforms/{platform}/cache.md

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon