Your team wants to replace Prometheus with VictoriaMetrics to reduce memory. How do you evaluate it?
IntermediateScenarioLong-Term Storage, Scale and Cost
Answer
Situation read → A storage change affects queries, alerts and dashboards. Measure before switching.
What I'd do →
- Dual-write: add
remote_writefrom Prometheus to a VictoriaMetrics instance (or runvmagentin parallel). - Compare memory, CPU and disk for the same ingestion over two weeks.
- Run the alert rules with
vmalertand compare firing alerts with Prometheus. - Point a copy of key dashboards to VictoriaMetrics and check differences. MetricsQL differs from PromQL in edge cases (e.g.
rate()extrapolation and lookbehind windows). - Check operational fit: backups (
vmbackup), HA, upgrades and support.
Why → Shadow running proves the savings and shows query differences before users notice.
Interview tip → Mention that compatibility is high but not 100%; alerts must be validated.
More on Long-Term Storage, Scale and Cost
Prometheus keeps 15 days of data, but leadership wants 13 months of metrics for capacity planning. What do you build?IntermediateThe Thanos compactor has halted and the bucket keeps growing. What do you do?AdvancedGrafana shows every series twice after you added a second Prometheus replica with Thanos. How do you fix it?IntermediateRemote write to your central store is falling further behind every hour. How do you handle it?AdvancedMimir rejects writes from a team with `err-mimir-max-series-per-user`. What do you do?IntermediateYour observability SaaS bill tripled in a quarter, driven by custom metrics. How do you bring it down?Intermediate