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.