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
- Start Prometheus
- Check the configuration
- Check rule files
- Unit-test alert rules
- Reload the configuration
- Query over HTTP
All running and checking commands · Prometheus and PromQL 3 cheatsheet