Re: [prometheus-users] Getting the dynamic threshold to print in the alert.

2020-03-14 Thread Yagyansh S. Kumar
Thanks for the help. Will try this. On Saturday, March 14, 2020 at 5:07:19 PM UTC+5:30, Christian Hoffmann wrote: > > Hi, > > On 3/13/20 1:55 PM, Yagyansh S. Kumar wrote: > > Hi. I am using Number of Cores of a server as the threshold for CPU > > Load. It is working fine but I want to print t

Re: [prometheus-users] Getting the dynamic threshold to print in the alert.

2020-03-14 Thread Christian Hoffmann
Hi, On 3/13/20 1:55 PM, Yagyansh S. Kumar wrote: > Hi. I am using Number of Cores of a server as the threshold for CPU > Load. It is working fine but I want to print the number of cores also in > the alert. > > Configured Alert: > >   - alert: HighCpuLoad >     expr: (node_load15 > count without

[prometheus-users] Getting the dynamic threshold to print in the alert.

2020-03-13 Thread Yagyansh S. Kumar
Hi. I am using Number of Cores of a server as the threshold for CPU Load. It is working fine but I want to print the number of cores also in the alert. Configured Alert: - alert: HighCpuLoad expr: (node_load15 > count without (cpu, mode) (node_cpu_seconds_total{mode="system"})) * on(inst