Back to browse
GitHub Repository

🔭 Drop-in Prometheus wrapper that caps metric cardinality at the source before unbounded labels OOM your monitoring stack.

2 starsGo

Promcap – cap Prometheus metric cardinality before it OOMs your stack

by eben-vranken·Jun 16, 2026·1 point·0 comments

AI Analysis

●●●BangerSolve My ProblemBig BrainSlick

Drop-in Prometheus wrapper caps cardinality at source before runaway labels OOM your stack.

Strengths
  • Enforces ceiling in-process at series creation—unbounded growth never reaches the registry.
  • Overflow series collapses to __overflow__ label keeping dashboards functional during incidents.
  • Drop-in replacement for CounterVec, GaugeVec, HistogramVec with identical API plus CapOpts.
Weaknesses
  • Go-only implementation excludes Python, Java, and other Prometheus client ecosystems.
  • Teams need to proactively wrap metrics—doesn't protect existing uninstrumented code.
Target Audience

Backend engineers running Prometheus monitoring stacks

Similar Projects