Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDisable local storage #2729
Comments
This comment has been minimized.
This comment has been minimized.
|
This should be pretty straightforward but it has very low-priority for me right now. Happy provide guidance and review if someone wants to implement that feature for 2.x I am curious about your use case though – do I assume correct that you still want to keep a certain amount of history in memory for querying or is it just about proxying data via remote-write? The easy mode is to set a short retention and point the data dir to tmpfs. Truly disabling anything persistence related will probably not give notable performance gains in 2.x |
This comment has been minimized.
This comment has been minimized.
|
Yes, use case is metrics in memory for querying but completely ephemeral. Persistence to disk is only via remote write or optional. Reason is not particularly performance but to deploy Prometheus as stateless container. |
This comment has been minimized.
This comment has been minimized.
|
We basically do this all the time with Kubernetes. Prometheus writes its data to the file system as usual, but it is backed by tmpfs and if the container goes down, the data is simply dropped. Anything speaking against that solution? |
This comment has been minimized.
This comment has been minimized.
|
Currently trying to deploy on internal PAAS platform which only supports stateless containers. |
This comment has been minimized.
This comment has been minimized.
|
Closing here as this seems to be a viable solution. |
fabxc
closed this
Jun 6, 2017
This comment has been minimized.
This comment has been minimized.
|
I would like to add my findings and doubts to this issue:
My doubts are:
|
This comment has been minimized.
This comment has been minimized.
sevagh
commented
May 16, 2018
•
I think this is intended behavior. When doing some basic testing, I put a log statement in my remote storage adapter on the Relevant info from the docs:
|
This comment has been minimized.
This comment has been minimized.
For queries that don't touch data older than the start time of the local TSDB, remote reads should only occur when the Relevant code: prometheus/storage/remote/read.go Lines 103 to 123 in 406233e |
This comment has been minimized.
This comment has been minimized.
|
(at least now, not sure if it was already true when your comment was written :)) |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
h7kanna commentedMay 16, 2017
Provide an option to configure Prometheus in disk-less storage mode in 2.x series.
From the discussion
https://groups.google.com/forum/#!topic/prometheus-users/kJ1knCitxQs
I learnt this can be easily implemented in 1.x series which I am trying to do.
But the suggestion was to ask someone working on 2.x series to consider this as a feature request.
Thanks,
Harsha