Prometheus TSDB OOM and High-Cardinality Sample Limit Failure
Matches Prometheus scrape sample_limit rejections, head series explosion warnings, and TSDB WAL compaction OOMKill failures.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:81f15587
Contract facts
- Sources
- 3
- kubernetes, prometheus, loki
- Log patterns
- 3
- RE2, replayed in CI
- Kubernetes matchers
- 0
- CEL on live objects
- Samples
- 3 and 2
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/prometheus-tsdb-oom-cardinality \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, prometheus, loki
What it matches
Must match
- level=warn msg="Scrape failed" err="scrape_sample_limit: exceeded sample limit 50000"
- prometheus tsdb head series limit exceeded on target payments-api
- Scrape failed for job orders-metrics: sample limit exceeded
Must not match
- TSDB checkpoint completed cleanly in 1.2s
- Prometheus server is ready to receive web requests
Signature source
signature.yamlFailureSignature26 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: prometheus-tsdb-oom-cardinality
spec:
description: Matches Prometheus scrape sample_limit rejections, head series explosion warnings, and TSDB WAL compaction
OOMKill failures.
sources:
- kubernetes
- prometheus
- loki
logPatterns:
- err=\"scrape_sample_limit|exceeded sample limit
- tsdb.*head series.*exceeded|out of memory.*prometheus
- Scrape failed.*sample limit exceeded
samples:
match:
- 'level=warn msg="Scrape failed" err="scrape_sample_limit: exceeded sample limit 50000"'
- prometheus tsdb head series limit exceeded on target payments-api
- 'Scrape failed for job orders-metrics: sample limit exceeded'
noMatch:
- TSDB checkpoint completed cleanly in 1.2s
- Prometheus server is ready to receive web requests
queries:
loki: '{app="prometheus"} |= "sample limit" or |= "head series"'
promql: topk(5, count by (job, __name__) ({__name__!=""})) > 25000
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/prometheus-tsdb-oom-cardinality. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: prometheus-tsdb-oom-cardinality
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:81f15587c56ca359e90d7ba70290d9adc423901563a24c381527523454d383fc
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsGKE Managed Prometheus Scrape and Cardinality Guard
playbooks/gke-gmp-telemetry-hygieneAudits Google Cloud Managed Service for Prometheus PodMonitoring and ClusterPodMonitoring manifests for aggressive scrape intervals and unguarded high-cardinality metrics, opening small HITL GitOps pull requests to cap telemetry spend.Default HITLCeiling HITLPrometheus ServiceMonitor and PodMonitor Cardinality Fixer
playbooks/prometheus-cardinality-bomb-fixerAudits Prometheus Operator ServiceMonitor and PodMonitor manifests for missing sampleLimit caps, overly aggressive scrape intervals, and unbounded high-cardinality labels, opening small HITL pull requests.Default HITLCeiling HITLKubernetes OOMKill and CrashLoop Signature
signatures/k8s-oom-crashloopMatches containers killed by the kernel OOM killer or stuck in CrashLoopBackOff, plus runtime heap exhaustion lines that precede an OOMKill.Log patterns 6Sources 4