Prometheus and PromQL 3 · Selecting data
Find targets that are down
The up metric is 1 when the last scrape worked and 0 when it failed.
up == 0
Official Prometheus and PromQL 3 documentation
More selecting data commands
All selecting data commands · Prometheus and PromQL 3 cheatsheet