A nagios check for prometheus inspired from go-check-graphite but for prometheus.
go install github.com/shashankm/go-check-prometheus
go-check-prometheus -H prometheus.example.com:9090 -q 'my.query' -w 10 -c 100
usage: go-check-prometheus [options]
Options:
-c, --critical string critical range
-h, --help show help
-H, --host string prometheus host
-n, --name string Short, descriptive name for metric (default "metric")
-q, --query string prometheus query
-t, --timeout int Execution timeout (default 10)
-w, --warning string warning range
- Shashank Mathur (@shashankm)
This project is released under the MIT license. See LICENSE for details.