VictoriaMetrics Flags, Compression & Scrape Fixes (9)
Hardened systemd units, cgroup memory bounds, metric_relabel_configs churn filters, HA deduplication, and zero-downtime Prometheus TSDB migrations.
9 Technical Triage Guides
Systemd Service Tuning
Running VictoriaMetrics as a bare Linux binary via systemd eliminates Docker bridge overhead and grants full control over file descriptors and page cache.
memory.allowedPercent Guide
Unlike Prometheus unbounded head allocations, VictoriaMetrics scales its internal IndexDB and block caches strictly inside -memory.allowedPercent of host RAM.
Gorilla/ZSTD Retention
VictoriaMetrics combines Gorilla delta-of-delta timestamps with ZSTD block compression to store metrics at 0.4-0.9 bytes per sample across 6 to 36 months.
Scrape Churn 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.
HA Scrape Deduplication
Running two redundant Prometheus or vmagent scrapers doubles ingested samples and storage cost unless VictoriaMetrics deduplicates matching intervals.
Prometheus TSDB Import
Export historical Prometheus TSDB blocks via snapshot API and stream them into VictoriaMetrics using vmctl without losing months of historical SLO baselines.
vmalert Recording Rules
VictoriaMetrics single-node focuses purely on ingestion and querying; pair it with vmalert (~35-80 MB RSS) to execute all existing Prometheus alerting rules.
MetricsQL Cache Tuning
Understanding -search.latencyOffset and rollupResultCache prevents stale tail-window queries from busting VictoriaMetrics cache on every 5-second dashboard refresh.
vmbackup Incremental Backups
Copying a live TSDB directory with rsync corrupts active merges; VictoriaMetrics /snapshot/create freezes hard links in milliseconds for consistent backups.