Checks a Prometheus metric and compares it to the given thresholds.
You should have Node.js installed.
$ npm install
$ node index.js [options] <query>
-V, --version output the version number
-e, --endpoint <prometheus_endpoint> Prometheus endpoint (required)
-w, --warning Warning threshold (default: 0)
-c, --critical Critical threshold (default: 0)
-u, --unit Metric unit - display only (optional)
-t, --time <rfc3339 | unix_timestamp> Evaluation timestamp (optional)
-h, --help output usage information
node index.js -e 'prom-endpoint.com' -w 75 -c 60 'some-prometheus-query'