fix issue in file system alert
This commit is contained in:
parent
517f048d2b
commit
477bbfbd06
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue