Bomb Squad: Containing the Cardinality Explosion
summary
A small Kubernetes sidecar called Bomb Squad watches Prometheus using a bootstrapped recording rule that computes per-metric cardinality, spots a rapidly growing label, and injects dynamic metric_relabel_config entries that replace exploding label values with a static string. In a demo with ~20 pods emitting ~100 new series/sec the metric climbs to ~8,400 series before the sidecar silences it, dropping cardinality back to baseline; remediation requires redeploying the exporter to clear the old registry. Open source and K8s‑centric, exposes metrics for alerting.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:55What is cardinality
- 3:19Causes of explosions
- 5:04Why explosions matter
- 7:11What is Bomb Squad
- 8:16Live demo setup
- 9:20Prometheus rules
- 10:24Demo explosion begins
- 12:12Bomb Squad detection
- 13:14Silencing the explosion
- 14:39Tracking silenced labels
- 15:23Fixing and redeploying
- 16:26CLI for cleanup
- 17:31Restoring stability
- 18:13Open source and Q&A
