Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[Question]: Delete metrics for a specific target #2356
Comments
This comment has been minimized.
This comment has been minimized.
|
That looks to be correct. Does that expression work in the expression browser? |
This comment has been minimized.
This comment has been minimized.
|
Yes it does. |
This comment has been minimized.
This comment has been minimized.
|
The space needs to be encoded as %20 |
brian-brazil
added
the
kind/question
label
Jan 20, 2017
This comment has been minimized.
This comment has been minimized.
|
Wonderful! |
DigitalMarc
closed this
Jan 20, 2017
keithf4
referenced this issue
Dec 13, 2017
Closed
Deletion of metrics through API no longer working in 2.0 #3584
This comment has been minimized.
This comment has been minimized.
piotrkochan
commented
Oct 18, 2018
|
This comment has been minimized.
This comment has been minimized.
mzupan
commented
Nov 2, 2018
•
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DigitalMarc commentedJan 20, 2017
Hi,
Prom version: 1.2.1
It seems that we can't use the delete API to remove a set of metrics such as:
{__name__=~".*",cluster="Test Cluster"}The API reply with
400 Bad Requestfull request made:
curl -X DELETE -g 'http://localhost:9090/api/v1/series?match[]={__name__=~".*",cluster="Test Cluster"}'How can we remove all the metrics that matches a specific field or, put differently, all metrics from a target?
Many thanks