Prometheus queries

From UVOO Tech Wiki
Revision as of 00:22, 25 February 2024 by Busk (talk | contribs)
Jump to navigation Jump to search

Queries

up

up{job="<job-name>", instance="<instance-id>"}

1 if the instance is healthy, i.e. reachable, or 0 if the scrape failed.

probe_success

up{job="<job-name>", instance="<instance-id>"}

1 if the instance is healthy, i.e. reachable, or 0 if the probe failed.

Check for down

probe_success < 1
up < 1

Check for sucess

up == 1

More

probe_success < 1
probe_success{job="tcp"}