docs: Minor formatting/typo fixes in the HTTP API docs (#17339)

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2025-10-23 11:48:36 +02:00 committed by GitHub
parent 87eb072c0a
commit ae83804ab0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -745,7 +745,7 @@ curl 'http://localhost:9090/api/v1/targets?state=active'
``` ```
```json ```json
{
"status": "success", "status": "success",
"data": { "data": {
"activeTargets": [ "activeTargets": [
@ -781,7 +781,7 @@ curl 'http://localhost:9090/api/v1/targets?scrapePool=node_exporter'
``` ```
```json ```json
{
"status": "success", "status": "success",
"data": { "data": {
"activeTargets": [ "activeTargets": [
@ -945,7 +945,7 @@ contain metric metadata and the target label set.
The following example returns all metadata entries for the `go_goroutines` metric The following example returns all metadata entries for the `go_goroutines` metric
from the first two targets with label `job="prometheus"`. from the first two targets with label `job="prometheus"`.
```json ```bash
curl -G http://localhost:9091/api/v1/targets/metadata \ curl -G http://localhost:9091/api/v1/targets/metadata \
--data-urlencode 'metric=go_goroutines' \ --data-urlencode 'metric=go_goroutines' \
--data-urlencode 'match_target={job="prometheus"}' \ --data-urlencode 'match_target={job="prometheus"}' \