Commit 74908cd1 authored by root's avatar root

ajout cpu steal et utilisation de record

parent 2221688f
Pipeline #2948 canceled with stages
groups:
- name: cpu
rules:
- record: cpu:idle
expr: (avg by (instance) ( irate( node_cpu_seconds_total{mode="idle"}[5m]) ) )
- record: cpu:steal
expr: (avg by (instance) ( irate( node_cpu_seconds_total{mode="steal"}[5m]) ) )
- alert: cpuIdle
expr: (avg by (instance) ( irate( node_cpu_seconds_total{mode="idle"}[5m]) ) ) < 0.2
expr: cpu:idle < 0.1 and cpu:idle >= 0.05
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
expr: cpu:idle < 0.05
for: 10m
labels:
severity: critical
annotations:
summary: cpu saturé
- alert: cpuSteal
expr: cpu:steal > 0.5
for: 10m
labels:
severity: critical
annotations:
summary: hyperviseur saturé
- alert: cpuSteal
expr: cpu:steal > 0.2 and cpu:steal <= 0.5
for: 10m
labels:
severity: warning
annotations:
summary: hyperviseur chargé
groups:
- name: disk
rules:
- record: disk:usage
expr: 1 - node_filesystem_free_bytes / node_filesystem_size_bytes
- alert: diskUsage
expr: 1 - node_filesystem_free_bytes / node_filesystem_size_bytes > 0.8
expr: disk:usage > 0.8 and disk:usage <= 0.9
for: 10m
labels:
severity: warning
annotations:
summary: consommation disque eleve
- alert: diskUsage
expr: 1 - node_filesystem_free_bytes / node_filesystem_size_bytes > 0.9
expr: disk:usage > 0.9
for: 10m
labels:
severity: critical
......
......@@ -17,15 +17,18 @@ groups:
severity: warning
annotations:
summary: surconssomation memoire
- record: memoire:swap
expr: 1 - ( node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes)
- alert: swap
expr: 1 - ( node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) > 0.8
expr: memoire:swap > 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
expr: memoire:swap > 0.5 and memoire:swap <= 0.8
for: 10m
labels:
severity: warning
......
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