Thanks.

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: 
https://github.com/NETWAYS/go-check#thresholds

There, the README shows an example "~:3" but not what it actually means. In 
the source 
<https://github.com/NETWAYS/go-check/blob/v0.5.0/threshold.go#L11-L22> 
(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)

On Wednesday, 20 September 2023 at 09:40:49 UTC+1 martialblog wrote:

> From what I can tell nagitheus as well as 
> https://github.com/prometheus/nagios_plugins can only be used for PromQL 
> checks.
>
> We wanted to have a tool that's also able to do other things, like a 
> simple heath check or alerts. 
>
> I also hope that the we can extend the CLI in the future if other features 
> are required, thus the subcommand pattern.
>
> On Wednesday, September 20, 2023 at 9:43:13 AM UTC+2 Brian Candler wrote:
>
>> Cool. How does this compare with https://github.com/claranet/nagitheus ?
>>
>> On Wednesday, 20 September 2023 at 07:51:35 UTC+1 martialblog wrote:
>>
>>> Hi,
>>>
>>> I just wanted to spread the word that me and my colleagues release a 
>>> little tool that helps to integrate Prometheus into monitoring tools like 
>>> Nagios/Icinga.
>>>
>>> It's a Nagios-style monitoring plugin that talk with the Prometheus API 
>>> and transforms the response into the OK,WARNING,CRITICAL semantic. All 
>>> packed into a Golang Binary, released under GPL-2.0 license.
>>>
>>> https://github.com/NETWAYS/check_prometheus 
>>>
>>> Current features are:
>>>
>>>    - health, Checks the health or readiness status of the Prometheus 
>>>    server
>>>    - alert, Checks the status of one or more Prometheus alerts
>>>    - query, Checks the status of a PromQL query
>>>
>>> Feedback is most welcome!
>>>
>>> Regards
>>> Markus
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ee5d6a30-8b5b-4cb1-bc36-1aa9768776e1n%40googlegroups.com.

Reply via email to