Merge branch 'modify-context-switch-threashold' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2020-09-28 01:00:30 +09:00 committed by Gitea
commit 57d21b0a40
1 changed files with 2 additions and 2 deletions

View File

@ -113,13 +113,13 @@ groups:
# Alert threshold depends on nature of application. # Alert threshold depends on nature of application.
# Please read: https://github.com/samber/awesome-prometheus-alerts/issues/58 # Please read: https://github.com/samber/awesome-prometheus-alerts/issues/58
- alert: HostContextSwitching - alert: HostContextSwitching
expr: (rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 1000 expr: (rate(node_context_switches_total[5m])) / (count without(cpu, mode) (node_cpu_seconds_total{mode="idle"})) > 4000
for: 5m for: 5m
labels: labels:
severity: warning severity: warning
annotations: annotations:
summary: "Host context switching (instance {{ $labels.instance }})" summary: "Host context switching (instance {{ $labels.instance }})"
description: "Context switching is growing on node (> 1000 / s)\n VALUE = {{ $value }}\n LABELS: {{ $labels }}" description: "Context switching is growing on node (> 4000 / s)\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
- alert: HostSwapIsFillingUp - alert: HostSwapIsFillingUp
expr: (1 - (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes)) * 100 > 80 expr: (1 - (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes)) * 100 > 80