curl http://localhost:9090/api/v1/query?query=up

Category: Self-Hosting

curl http://localhost:9090/api/v1/query?query=up

Query the Prometheus API to check which monitored targets are currently up

Queries Prometheus to see which scrape targets are reporting as up. The 'up' metric is 1 for healthy targets and 0 for unreachable ones.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.