fix issue in file system alert

This commit is contained in:
Aaron Riedel 2023-04-20 05:54:18 +02:00
parent 517f048d2b
commit 477bbfbd06
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -27,7 +27,7 @@ data:
- name: diskspace_low_worker
rules:
- alert: DiskspaceLow
expr: round((((node_memory_MemTotal_bytes{node=~"worker.*"} - node_memory_MemAvailable_bytes{node=~"worker.*"}) / node_memory_MemTotal_bytes{node=~"worker.*"}) * 100), 0.1) < 10
expr: round(node_filesystem_avail_bytes{mountpoint="/", node=~"worker.*"} / 1073742000, 0.1) < 50
for: 1m
labels:
severity: warning
@ -37,7 +37,7 @@ data:
- name: diskspace_low_master
rules:
- alert: DiskspaceLow
expr: round((((node_memory_MemTotal_bytes{node=~"master.*"} - node_memory_MemAvailable_bytes{node=~"master.*"}) / node_memory_MemTotal_bytes{node=~"master.*"}) * 100), 0.1) < 2
expr: round(node_filesystem_avail_bytes{mountpoint="/", node=~"master.*"} / 1073742000, 0.1) < 10
for: 1m
labels:
severity: warning