mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-03 08:31:02 +01:00
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:
parent
87eb072c0a
commit
ae83804ab0
@ -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"}' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user