Nagios plugins for alerting on Prometheus query results

https://github.com/prometheus/nagios_plugins

Nagios plugin (in fact only one) for alerting on prometheus query results.

PROMETHEUS_SERVER='http://demo.robustperception.io:9090'
QUERY_SCALAR_UP='scalar(up{instance="demo.robustperception.io:9100"})'
QUERY_VECTOR_UP='up{instance="demo.robustperception.io:9100"}'

bash check_prometheus_metric.sh -H $PROMETHEUS_SERVER -q $QUERY_SCALAR_UP -w 1 -c 1 -n $QUERY_SCALAR_UP -m lt
OK - scalar(up{instance="demo.robustperception.io:9100"}) is 1

Refresh
Refresh
Source Files
Filename Size Changed Actions
_service 0000000518 518 Bytes 9 months
prometheus-nagios_plugins.changes 0000000180 180 Bytes 9 months
prometheus-nagios_plugins.spec 0000002063 2.01 KB 9 months
Comments for prometheus-nagios_plugins 0