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(instance)
group_left(nodename) node_uname_info
for: 5m
labels:
severity: "CRITICAL"
annotations:
summary: "CPU load on {{ $labels.instance }} - {{ $labels.nodename }}
is more than *number of cores of the machine*."
description: "Current Value = {{ $value | humanize }}"
Instead of the string "*number of cores of the machine* ", I want to actual
number of cores of the server. Is there any way to do this?
Thanks!
--
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/906ac868-f513-49e9-a1c4-f18e21f7787a%40googlegroups.com.