Commit 2a37db11 authored by root's avatar root

ajout de nouvelles regles d'alertes : cpu, memoire et disque

parent d4724c3c
Pipeline #2877 passed with stages
in 13 minutes and 54 seconds
groups:
- name: cpu
rules:
- alert: cpuIdle
expr: (avg by (instance) ( irate( node_cpu_seconds_total{mode="idle"}[5m]) ) ) < 0.2
for: 10m
labels:
severity: warning
annotations:
summary: cpu disponible faible
- alert: cpuIdle
expr: (avg by (instance) ( irate( node_cpu_seconds_total{mode="idle"}[5m]) ) ) < 0.1
for: 10m
labels:
severity: critical
annotations:
summary: cpu saturé
groups:
- name: disk
rules:
- alert: diskUsage
expr: 1 - node_filesystem_free_bytes / node_filesystem_size_bytes > 0.8
for: 10m
labels:
severity: warning
annotations:
summary: consommation disque eleve
- alert: diskUsage
expr: 1 - node_filesystem_free_bytes / node_filesystem_size_bytes > 0.9
for: 10m
labels:
severity: critical
annotations:
summary: disque saturé
groups:
- name: memoire
rules:
- alert: overcommit
expr: node_memory_Committed_AS_bytes / (node_memory_MemTotal_bytes + node_memory_SwapTotal_bytes) > 0.9
for: 10m
labels:
severity: critical
annotations:
summary: surconsommation memoire
- alert: overcommit
expr: node_memory_Committed_AS_bytes / (node_memory_MemTotal_bytes + node_memory_SwapTotal_bytes) > 0.8
for: 10m
labels:
severity: warning
annotations:
summary: surconssomation memoire
- alert: swap
expr: 1 - ( node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) > 0.8
for: 10m
labels:
severity: critical
annotations:
summary: saturation du swap
- alert: swap
expr: 1 - ( node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) > 0.5
for: 10m
labels:
severity: warning
annotations:
summary: usage swap eleve
groups:
- name: memoire
rules:
- alert: overcommit
expr: node_memory_Committed_AS_bytes / (node_memory_MemTotal_bytes + node_memory_SwapTotal_bytes) > 0.8
for: 10m
labels:
severity: page
annotations:
summary: surconsommation memoire
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment