Hi All, I tried the following today, if i delete few metrics individually, those metrics are deleted. But if i give expression to match all metrics then none of them are getting deleted. Can you let me know if i am missing something?
Thanks n Regards, Chalapathi. On Tue, Mar 3, 2020 at 12:53 PM Venkata Bhagavatula <[email protected]> wrote: > Hi, > > I was 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 timeseries. > > 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. > > I am using prometheus version 2.11.1. > 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 Users" 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-users/CABXnQPsZhbVH3hJqpq3et47TpNL_MqOCM%3DRO8bFfPORxzQo_eA%40mail.gmail.com.

