Difference between revisions of "Prometheus queries"
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
probe_success < 1 | probe_success < 1 | ||
probe_success{job="tcp"} | probe_success{job="tcp"} | ||
+ | ``` | ||
+ | |||
+ | node exporter | ||
+ | ``` | ||
+ | node_uname_info{nodename="my-agent-sandbox"} | ||
``` | ``` |
Latest revision as of 20:26, 2 March 2024
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"}
node exporter
node_uname_info{nodename="my-agent-sandbox"}