disable local storage with Prometheus 2

31 views
Skip to first unread message

Florin Andrei

unread,
Feb 24, 2020, 7:13:35 PM2/24/20
to Prometheus Users
Is there a way to completely disable local storage with Prometheus 2?

There used to be an option --storage.local.engine, and the value none used to disable local storage, but with v2 I get this:

Error parsing commandline arguments: unknown long flag '--storage.local.engine'
prometheus: error: unknown long flag '--storage.local.engine'

I use remote read/write with InfluxDB and writing locally is a waste of resources.

Julien Pivotto

unread,
Feb 24, 2020, 7:18:15 PM2/24/20
to Florin Andrei, Prometheus Users
Hello,

It is not possible to disable local storage with prometheus 2.
Even remote write now tails the local storage, IIRC.

>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d8d55d50-b43f-4421-a050-15e409030e7f%40googlegroups.com.


--
(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits - https://www.inuits.eu
signature.asc

Florin Andrei

unread,
Feb 24, 2020, 9:35:26 PM2/24/20
to Prometheus Users
What are some ways to minimize the impact of local storage - in terms of both disk space and disk I/O?

I'm thinking to reduce --storage.tsdb.retention.time - what would be a safe low value? 2h?

Keep the local storage in /dev/shm?

Brian Candler

unread,
Feb 25, 2020, 3:30:31 AM2/25/20
to Prometheus Users
If you want a completely dumb scraper that doesn't store anything locally, VictoriaMetrics just released vmagent which does exactly that:

Reply all
Reply to author
Forward
0 new messages