Faberby FaberOps

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:v2

How 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.