Page MenuHomePhabricator
Paste P8966

(An Untitled Masterwork)
ActivePublic

Authored by ema on Aug 23 2019, 5:06 AM.
root@icinga1001:~# /usr/lib/nagios/plugins/check_prometheus_metric.py --url 'http://prometheus.svc.eqiad.wmnet/ops' -w '1' -c '1' -m 'gt' 'scalar(trafficserver_restart_count{instance=~"cp1076:.*",layer="backend"})'
usage: check_prometheus_metric.py [-h] [--url URL] [--timeout SECONDS] -c
FLOAT -w FLOAT [-m METHOD] [--nan-ok]
[--debug]
query [query ...]
check_prometheus_metric.py: error: Thresholds not consistent with method: 1.0 gt 1.0

Event Timeline

ema created this paste.Aug 23 2019, 5:06 AM