Deleting all timeseries

31 views
Skip to first unread message

Venkata Bhagavatula

unread,
Mar 11, 2020, 6:19:06 AM3/11/20
to Prometheus Developers
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:

followed by

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.

Julius Volz

unread,
Mar 11, 2020, 11:18:47 AM3/11/20
to Venkata Bhagavatula, Prometheus Developers
On Wed, Mar 11, 2020 at 11:19 AM Venkata Bhagavatula <venkat...@gmail.com> wrote:
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:


Could it be that here you need to escape the "+" character as "%2B" in the query string? Otherwise it would become a space character.
 

followed by

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 prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/4561d2b6-e392-48f9-9502-7ab630474796%40googlegroups.com.

Venkata Bhagavatula

unread,
Mar 16, 2020, 7:02:26 AM3/16/20
to Julius Volz, Prometheus Developers
Hi  Julius,

I tried replacing + as "%2B", but with no luck.  

Thanks n Regards,
Chalapathi.
Reply all
Reply to author
Forward
0 new messages