promtool query instant http://localhost:9090 'up'

Category: Monitoring & Observability

promtool query instant http://localhost:9090 'up'

Run an instant PromQL query against a server

Evaluates a PromQL expression at the current time against the server given as the positional argument and prints the resulting series. The expression up returns one series per scrape target, where 1 means healthy and 0 means down. Add --time with an RFC3339 timestamp to evaluate at a past moment.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.