Score:0

Wipe all stored prometheus metrics?

bg flag

I have install prometheus (v2.1.0 from Ubuntu 18.04's apt repository), and I have played around with adding hosts & metrics and all that for about a week. I want to “start fresh” and delete all existing stored data & metrics. How can I do this?

djdomi avatar
za flag
well i do testing on a vm or container,wipe it and use the snapshot to start over,forgotten about to do it? Mostly i would suggest to look for howtos that regards to backup this peace because then you know how to get rid off tze data. Thats how i do on generic unknown software
Score:1
gu flag

Prometheus stores its TSDB in /var/lib/prometheus in most default packages.

It will initialize it on startup if it doesn't exist so simply clearing its content is enough.

If you've played around with remote_write however, you'll need to clear the long-term storage solution which will vary depending on which storage solution it is.

If you want to reset its configuration, delete /etc/prometheus and reinstall the package.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.