Prometheus and PromQL 3 · Running and checking

List scrape targets

See the health of every target through the API.

curl -s http://localhost:9090/api/v1/targets | jq '.data.activeTargets[] | {job: .labels.job, health: .health}'

Official Prometheus and PromQL 3 documentation

More running and checking commands

All running and checking commands · Prometheus and PromQL 3 cheatsheet

Was this page helpful?