It wasn't clear to me how the -c (critical) and -w (warning) thresholds work. I had to dig through source and I found my way to a dependency:
There, the README shows an example "
~:3" but not what it actually means. In the
source (which presumably ends up in godoc) I found:
// Defining a threshold for any numeric value
//
// Format: [@]start:end
//
// Threshold Generate an alert if x...
// 10 < 0 or > 10, (outside the range of {0 .. 10})
// 10: < 10, (outside {10 .. ∞})
// ~:10 > 10, (outside the range of {-∞ .. 10})
// 10:20 < 10 or > 20, (outside the range of {10 .. 20})
// @10:20 ≥ 10 and ≤ 20, (inside the range of {10 .. 20})
//
// Reference:
https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
So my main feedback is, a direct documentation link from check_prometheus to THRESHOLDFORMAT would be very helpful :-)
(I guess this is standard for nagios though. I know check_snmp works in this way)