From 02ca988bbd0cd0504d42fe6528de4b8cd7cb2ce2 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Tue, 7 Nov 2017 23:37:03 +0100 Subject: [PATCH] Remove /api/v1/delete_series docs for 2.0 (#3425) This endpoint has moved to /api/v2 (with somewhat different properties) in Prometheus 2.0 and should now be part of a separate admin API page. --- docs/querying/api.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/docs/querying/api.md b/docs/querying/api.md index c23677a5a..8b33d4cda 100644 --- a/docs/querying/api.md +++ b/docs/querying/api.md @@ -257,40 +257,6 @@ $ curl http://localhost:9090/api/v1/label/job/values } ``` -## Deleting series - -The following endpoint deletes matched series entirely from a Prometheus server: - -``` -DELETE /api/v1/series -``` - -URL query parameters: - -- `match[]=`: Repeated label matcher argument that selects the - series to delete. At least one `match[]` argument must be provided. - -The `data` section of the JSON response has the following format: - -``` -{ - "numDeleted": -} -``` - -The following example deletes all series that match either of the selectors -`up` or `process_start_time_seconds{job="prometheus"}`: - -```json -$ curl -XDELETE -g 'http://localhost:9090/api/v1/series?match[]=up&match[]=process_start_time_seconds{job="prometheus"}' -{ - "status" : "success", - "data" : { - "numDeleted" : 3 - } -} -``` - ## Expression query result formats Expression queries may return the following response values in the `result`