Re: [prometheus-users] Null value in alerts

2022-12-17 Thread Yashaswini K
Hi Team On Sunday, 11 December 2022 at 23:20:24 UTC+5:30 matt...@prometheus.io wrote: > When you say "the value is missing", what condition exactly do you want to > alert on? > > To detect that there is *no* metric matching your selector, you can use > the absent(…) function. It returns 1 when

Re: [prometheus-users] Null value in alerts

2022-12-11 Thread Matthias Rampke
When you say "the value is missing", what condition exactly do you want to alert on? To detect that there is *no* metric matching your selector, you can use the absent(…) function. It returns 1 when … is nothing. It gets more complicated and difficult if you want to detect that a single series ha

Re: [prometheus-users] Null value in alerts

2022-12-09 Thread Stuart Clark
On 09/12/2022 08:49, sebagloc...@gmail.com wrote: Thanks for advice, So in this case I just need to use absent like this In alert?:   - alert: Resource group in cluster is down     expr: absent(windows_mscluster_resourcegroup_state {name!~"Available Storage"}) == 1 You aren't listing a met

RE: [prometheus-users] Null value in alerts

2022-12-09 Thread sebaglock14
us Users Subject: Re: [prometheus-users] Null value in alerts When you say "the value is missing", what condition exactly do you want to alert on? To detect that there is *no* metric matching your selector, you can use the absent(…) function. It returns 1 when … is nothing.

[prometheus-users] Null value in alerts

2022-12-08 Thread Sebastian Glock
Hi, I'm having trouble setting up an alert that will send a notification when a value is different from 0 and the value is missing (i.e. null). expression: windows_mscluster_resourcegroup_state {name!~"Available Storage"} != 0 or on() vector(0) The alert goes off non-stop. How can I set the me