From 7e76edc3000f471ee146dfe3a6be649a313a3ad8 Mon Sep 17 00:00:00 2001 From: Clayton O'Neill Date: Tue, 14 Jan 2020 07:07:48 -0500 Subject: [PATCH] Fix curl args for data-urlencode The curl argument `--data-urlencode` doesn't accept equal signs between the arg and the value, but needs whitespace instead. Signed-off-by: Clayton O'Neill --- docs/querying/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/querying/api.md b/docs/querying/api.md index 3c8c69163..860ecf8fa 100644 --- a/docs/querying/api.md +++ b/docs/querying/api.md @@ -236,7 +236,7 @@ The following example returns all series that match either of the selectors `up` or `process_start_time_seconds{job="prometheus"}`: ```json -$ curl -g 'http://localhost:9090/api/v1/series?' --data-urlencode='match[]=up' --data-urlencode='match[]=process_start_time_seconds{job="prometheus"}' +$ curl -g 'http://localhost:9090/api/v1/series?' --data-urlencode 'match[]=up' --data-urlencode 'match[]=process_start_time_seconds{job="prometheus"}' { "status" : "success", "data" : [