Prometheus queries

From UVOO Tech Wiki
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"}

node exporter

node_uname_info{nodename="my-agent-sandbox"}