This is my load expression: 
avg(node_load1) / count(count(node_cpu_seconds_total) by (cpu)) * 100

I'm not sure, how to convert it to range vector.

Thank you.

On Sunday, April 19, 2020 at 9:14:55 PM UTC+2, Julien Pivotto wrote:
>
> On 19 Apr 12:09, Marek Fiala wrote: 
> > Hi, 
> > 
> > what is the best way to detect value flapping? 
> > 
> > For example: I want to create an alert when load was higher than some 
> > threshold more than 10 times in last 24 hours. 
> > 
> > Thank you. 
>
> - record: load:gt_10:10m 
>   expr:  min_over_time(load_metric[10m]) > 10 
> - alert: LoadTooHighFor10m 
>   expr: count_over_time(load:gt_10:10m[24h]) 
>
> > 
> > 
> > -- 
> > 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] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/97d84202-f84c-49a3-9e03-eed64f90295d%40googlegroups.com.
>  
>
>
>
> -- 
>  (o-    Julien Pivotto 
>  //\    Open-Source Consultant 
>  V_/_   Inuits - https://www.inuits.eu 
>

-- 
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/ca6f9a2d-eab9-46c9-90d7-f3f49deb4a71%40googlegroups.com.

Reply via email to