From 432b261c13c28667d7ed6e5753120a80ce8da579 Mon Sep 17 00:00:00 2001 From: Denys Holius <5650611+denisgolius@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:20:08 +0300 Subject: [PATCH] url-examples: added curl output after deleting metrics (#2764) docs: add more details to url-examples for series deleting --- docs/url-examples.md | 48 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/url-examples.md b/docs/url-examples.md index f6350fc525..84fde9a78b 100644 --- a/docs/url-examples.md +++ b/docs/url-examples.md @@ -12,7 +12,29 @@ Single:
```console -curl 'http://:8428/api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total' +curl -v 'http://:8428/api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total' +``` + +
+ +The expected output should return [HTTP Status 204](https://datatracker.ietf.org/doc/html/rfc7231#page-53) and will look like: + +
+ +```console +* Trying 127.0.0.1:8428... +* Connected to 127.0.0.1 (127.0.0.1) port 8428 (#0) +> GET /api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total HTTP/1.1 +> Host: 127.0.0.1:8428 +> User-Agent: curl/7.81.0 +> Accept: */* +> +* Mark bundle as not supporting multiuse +< HTTP/1.1 204 No Content +< X-Server-Hostname: eba075fb0e1a +< Date: Tue, 21 Jun 2022 07:33:35 GMT +< +* Connection #0 to host 127.0.0.1 left intact ```
@@ -21,7 +43,29 @@ Cluster:
```console -curl 'http://:8481/delete/0/prometheus/api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total' +curl -v'http://:8481/delete/0/prometheus/api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total' +``` + +
+ +The expected output should return [HTTP Status 204](https://datatracker.ietf.org/doc/html/rfc7231#page-53) and will look like: + +
+ +```console +* Trying 127.0.0.1:8481... +* Connected to 127.0.0.1 (127.0.0.1) port 8481 (#0) +> GET /delete/0/prometheus/api/v1/admin/tsdb/delete_series?match[]=vm_http_request_errors_total HTTP/1.1 +> Host: 127.0.0.1:8481 +> User-Agent: curl/7.81.0 +> Accept: */* +> +* Mark bundle as not supporting multiuse +< HTTP/1.1 204 No Content +< X-Server-Hostname: 101ed7a45c94 +< Date: Tue, 21 Jun 2022 07:21:36 GMT +< +* Connection #0 to host 127.0.0.1 left intact ```