Purge / Delete data from TSDB

1,940 views
Skip to first unread message

IndGirl6

unread,
Jul 20, 2018, 4:05:59 PM7/20/18
to Prometheus Users
Hi

I have JVM (Spring BOot)  monitoring setup and the grafana dashboard has been templatized to select the app from a drop down to see the stats for that app. 
The app team changed the name of a bunch of application and are now requesting removal of data for the old app name, ie, they dont want to see those apps in the drop down.

I have a 300day retention period, and i know the data will only be purged after 300days. so One way would be to reduce retention. But that would purge ALL my data/
Is there any other way to remove all data for the old app name only without affecting other data?


Matt Doughty

unread,
Jul 20, 2018, 4:15:59 PM7/20/18
to IndGirl6, Prometheus Users
You need to enable the admin API and the delete the series and clean tombstones I believe:

https://prometheus.io/docs/prometheus/latest/querying/api/#delete-series

--Matt

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f87aa48e-d3ee-4b2f-ad50-3cffdf78e40e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--Matt
Reply all
Reply to author
Forward
0 new messages