how to change the path where prometheus creates data file

29 views
Skip to first unread message

Anirudh Pasalapudi

unread,
Jun 22, 2020, 6:16:28 PM6/22/20
to Prometheus Users
I am trying to change the path of data file creation which will happen when prometheus is deployed. I want to make sure that the data file is not replaced or rewritten when servers with prometheus crashes and new servers are created. Can anyone pls help me how can I achieve this. I am trying to deploy/ run prometheus on ec2 servers using ansible playbooks.

Brian Candler

unread,
Jun 23, 2020, 2:32:06 AM6/23/20
to Prometheus Users
Add a command-line flag to the executable when you start it: e.g.   --storage.tsdb.path=/var/lib/prometheus/data/

Anirudh Pasalapudi

unread,
Jun 23, 2020, 6:35:25 AM6/23/20
to Brian Candler, Prometheus Users
Thanks a lot

On Tue, Jun 23, 2020, 2:32 AM Brian Candler <b.ca...@pobox.com> wrote:
Add a command-line flag to the executable when you start it: e.g.   --storage.tsdb.path=/var/lib/prometheus/data/

--
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/07e99e91-e17a-42a4-9d7d-719a83c1a1ddo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages