Prompt
I’m unhappy with Prometheus long-term storage costs
Latest observation
That’s a common pain point. Prometheus itself is great for scraping and alerting, but long-term storage can get expensive fast if you keep a lot of high-cardinality time series at short scrape intervals.
A few practical ways to reduce cost:
-
Reduce retention in Prometheus
Keep only short-term data locally, and offload long-term storage elsewhere. -
Use remote write + a cheaper backend
Options like Thanos, Cortex, Grafana Mimir, VictoriaMetrics, or a managed metrics platform can store data more efficiently and provide long-term querying. -
Cut cardinality
This is usually the biggest win. Look for:- labels with unbounded values
- per-user/per-request IDs
- overly detailed pod/container labels
- metrics you don’t actually use
Reducing series count can dramatically lower storage and query costs.
-
Increase scrape intervals where acceptable
If you’re scraping everything every 15s but only need some metrics every 60s, you can save a lot. -
Drop unused metrics at ingestion
Usemetric_relabel_configsto discard noisy series before they hit storage. -
Downsample older data
For long-term trends, you may not need raw samples forever. Some systems can keep high-resolution data short-term and lower-resolution aggregates long-term. -
Optimize recording rules
Precompute only the aggregates you actually need, instead of storing everything raw for years.
If you want, I can help you with one of these specifically:
- estimate where your Prometheus cost is coming from,
- compare long-term storage backends, or
- review your metrics/cardinality strategy.