Skip to main content
READY SERIESSTORE LAB // PROMETHEUS OOM VS VICTORIAMETRICS TSDB BASELINE: 2026-11-11 | TARGET: 0.8-1.3 KB/SERIES | 0.4-0.9 B/SAMPLE ZSTD
VictoriaMetrics
VictoriaMetrics Disclosure: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero checkout cost (Disclosures).
VictoriaMetrics Tuning Fixes // SeriesStore Lab

Cutting Pod Churn with scrape-prometheus.yml Relabeling

Filtering junk debug metrics and ephemeral container labels at scrape time cuts active series count by 30-55% with zero loss of actionable SLO telemetry.

Measured TSDB & Cardinality Telemetry

Default exporters (kube-cadvisor, kube-state-metrics, Go runtime) emit dozens of per-bucket or internal GC metrics never queried in Grafana. Dropping them inside metric_relabel_configs shrinks both RAM (0.8-1.3 KB/series) and multi-year disk consumption.

Subsystem / SignalMeasured FootprintOperational Impact
Drop go_gc_* & process_virtual_*12 - 18% series dropZero impact on application latency or error panels
Labeldrop container_label_* & id25 - 40% series dropEliminates Docker/containerd hash churn
Keep Critical Pod Labelsnamespace, pod, containerPreserves all Kubernetes alerting rules

Step-by-Step Diagnostic & Config Remediation

  1. Audit top 20 metrics in vmui: Open http://host:8428/vmui/#/cardinality to inspect high-cardinality offenders.
  2. Add metric_relabel_configs rules: Drop noisy runtime histograms and ephemeral container labels inside scrape-prometheus.yml.
  3. Hot-reload scrape config: Send SIGHUP or POST /-/reload to apply changes with zero dropped scrapes.
scrape_configs:
  - job_name: "kube-cadvisor"
    metric_relabel_configs:
      - source_labels: [__name__]
        regex: "container_tasks_state|container_memory_failures_total"
        action: drop
      - regex: "id|image|container_label_.*"
        action: labeldrop

Diagnostic FAQ

What is the difference between relabel_configs and metric_relabel_configs?

relabel_configs runs before scraping targets (discovery metadata); metric_relabel_configs filters scraped time series before storage.

Can VictoriaMetrics reload scrape-prometheus.yml without restarting?

Yes. Send POST http://127.0.0.1:8428/-/reload or kill -HUP $(pidof victoria-metrics-prod).

Related VictoriaMetrics Tuning Fixes Guides

VictoriaMetrics: Cut Prometheus OOM RAM 80%+ on InterServer $6/TB Slice Launch $6/TB Slice