Yes, that's trivially easy to do in PromQL alerts.

For example: avg(up{job="food"}) < 0.5

This would only alert if more than half the instances are down.

On Fri, May 22, 2020, 18:42 Sebastian Martinez <[email protected]>
wrote:

> Stuart,
>
> At the present time, we are using BP to detect some behaviors between
> hosts (UP/DOWN) and services (responses like: LOAD, disk usage, etc..).
>
> For example: some cluster with 6 workers (docker swarm), it has 3 Workers
> Up and 3 Workers Down - This state doesn't represent an issue - but if we
> have more than a half down, this is an issue.
>
> As I said I am thinking of using Alerts with functions to emulate this.
> Please, your opinions are well received.
>
> Ref: https://community.icinga.com/t/module-business-process/83
>
> Regards.
>
>
>
> El viernes, 22 de mayo de 2020, 12:29:16 (UTC-4), Stuart Clark escribió:
>>
>> On 2020-05-22 17:28, Sebastian Martinez wrote:
>> > Hi there,
>> >
>> > I'm moving from ICINGA2 to Prometheus monitor solution and we have
>> > some questions about it "How to manage or emulate BUSINESS PROCESS on
>> > Prometheus side".
>> > I'm thinking to try  with some Alerts with functions (on Prometheus)
>> > to emulate BP.
>> >
>> > Any advise here?.
>>
>> What sort of business processes?
>>
>> --
>> Stuart Clark
>>
> --
> 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/a35c5811-944c-453c-a073-25f418919ef9%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/a35c5811-944c-453c-a073-25f418919ef9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABbyFmqUzo%2B6p7mn3iq82-x8D-6Mk7_-UYXbAqvG0GEWToKsrg%40mail.gmail.com.

Reply via email to