Created
April 18, 2020 14:58
-
-
Save martinhaus/2c15961e8aaaf7d01e500edb234219c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert: K8SNodeCPUUtilizationDev | |
Expr: node:node_container_cpu_usage_seconds:irate1m{kubernetes_cluster=”kube-dev”} / node:node_allocatable_cpu_cores:sum{kubernetes_cluster=”kube-dev”}) * 100 > 90 | |
for: 1h | |
labels: | |
group: system | |
severity: warning | |
annotations: | |
identifier: '{{ $labels.kubernetes_cluster }}/{{ $labels.instance_name }}' | |
msg: Node CPU ultilization by containers has been over 90% for more than 1h. | |
reason: Node CPU ultilization by containers is high. Recalculate CPU request and | |
limits. | |
value: '{{ printf "%.2f" $value }}%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment