Hi All,

I am using prometheus version 2.11.1. 
I was trying to delete all the timeseries from the disk, Using the  admin 
rest api for deleting the timeseries. Following is what i executed:

*curl  -XPOST   -g 
'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={__name__=~ 
<http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]=%7B__name__=~>".+"}'*
followed by
*curl  -XPOST  'http://localhost:9090/api/v1/admin/tsdb/clean_tombstones 
<http://localhost:9090/api/v1/admin/tsdb/clean_tombstones>'*

As mentioned in the document, 204 is returned for both curl commands.

I was expecting that all the timeseries would be deleted from the disk. But 
this is not the case.
i could see that still timeseries data is present.

Then i tried deleting a particular metric and i could see that data is 
deleted. So Can we delete all the timeseries from the disk? using the above 
Rest API.

Thanks n Regards,
Chalapathi.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/4561d2b6-e392-48f9-9502-7ab630474796%40googlegroups.com.

Reply via email to