Add alert for load usage
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
pz2891 2021-02-17 18:08:39 +01:00
parent a5b4deacee
commit 61001e09f5
2 changed files with 18 additions and 0 deletions

View file

@ -60,6 +60,15 @@ groups:
annotations:
summary: "{{ $labels.name }} a échoué sur {{ $labels.instance }}"
# Check load of instance
- alert: LoadUsage
expr: node_load1 > 5
for: 2m
labels:
severity: warning
annotations:
summary: "La charge de {{ $labels.instance }} est à {{ $value }} % !"
# Check UPS
- alert: UpsOutputSourceChanged
expr: upsOutputSource != 3

View file

@ -60,6 +60,15 @@ groups:
annotations:
summary: "Federate : {{ $labels.name }} a échoué sur {{ $labels.exported_instance }}"
# Check load of instance
- alert: LoadUsage
expr: node_load1 > 5
for: 2m
labels:
severity: warning
annotations:
summary: "Federate : la charge de {{ $labels.exported_instance }} est à {{ $value }} % !"
# Check UPS
- alert: UpsOutputSourceChanged
expr: upsOutputSource != 3