On Wed, Mar 11, 2020 at 11:19 AM Venkata Bhagavatula <
venkat.cha...@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:
>
> *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__=~>".+"}'*
>

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
> *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 prometheus-developers+unsubscr...@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
> <https://groups.google.com/d/msgid/prometheus-developers/4561d2b6-e392-48f9-9502-7ab630474796%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CA%2BT6YowgNMjoizvAm%2B0NRnwfVn3tN%3DM8NuzLEN5ou%2BVZ%2BhYFtg%40mail.gmail.com.

Reply via email to