Compare commits

..

2 Commits

Author SHA1 Message Date
de1500ef95 correction syntaxe subroutes 2022-02-07 12:23:45 +01:00
c35d1f0416 fix mise en page configuration alertmanager 2022-02-07 11:17:10 +01:00
2 changed files with 6 additions and 16 deletions

View File

@ -34,16 +34,6 @@ groups:
- alert: filesystem_threshold_exceeded - alert: filesystem_threshold_exceeded
expr: node_filesystem_avail{job="%%{job_name_node}",mountpoint="/"} / node_filesystem_size{job="%%{job_name_node}"} expr: node_filesystem_avail{job="%%{job_name_node}",mountpoint="/"} / node_filesystem_size{job="%%{job_name_node}"}
* 100 < 20 * 100 < 20
for: 2m
annotations:
description: This device's filesystem usage has exceeded the threshold with
a value of {{ $value }}.
summary: Instance {{ $labels.instance }} filesystem usage is dangerously high
# Heavy "/var" use
- alert: var_filesystem_threshold_exceeded
expr: node_filesystem_avail{job="node",mountpoint="/var"} / node_filesystem_size{job="node"}
* 100 < 20
annotations: annotations:
description: This device's filesystem usage has exceeded the threshold with description: This device's filesystem usage has exceeded the threshold with
a value of {{ $value }}. a value of {{ $value }}.

View File

@ -93,9 +93,9 @@ route:
continue: true continue: true
%if not %%is_empty('alSubRoute') %if not %%is_empty('alSubRoute')
routes:
%for sroute in %%getVar('alSubRoute',[]) %for sroute in %%getVar('alSubRoute',[])
%if %%sroute == %%rt %if %%sroute == %%rt
routes:
- match: - match:
%%{sroute.alSubRouteMatchSource}: %%{sroute.alSubRouteMatchValue} %%{sroute.alSubRouteMatchSource}: %%{sroute.alSubRouteMatchValue}
receiver: %%sroute.alSubRouteMatchReceiver receiver: %%sroute.alSubRouteMatchReceiver