Skip to content
Snippets Groups Projects
Verified Commit ad81276a authored by me5na7qbjqbrp's avatar me5na7qbjqbrp Committed by ynerant
Browse files

Use quotes to escape YAML dicts

parent 0b4c77eb
No related branches found
No related tags found
1 merge request!254Cachan
......@@ -27,7 +27,7 @@ groups:
labels:
severity: critical
annotations:
summary: {{ $labels.instance }} ({{ $labels.job }}) est manquant
summary: "{{ $labels.instance }} ({{ $labels.job }}) est manquant"
- alert: PrometheusConfigurationReloadFailure
expr: prometheus_config_last_reload_successful != 1
......@@ -106,7 +106,7 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $labels.mountpoint }} sur {{ $labels.instance }} arrive à saturation ({{ $value }}%)
summary: "{{ $labels.mountpoint }} sur {{ $labels.instance }} arrive à saturation ({{ $value }}%)"
- alert: HostDiskWillFillIn24Hours
expr: (node_filesystem_avail_bytes * 100) / node_filesystem_size_bytes < 10 and ON (instance, device, mountpoint) predict_linear(node_filesystem_avail_bytes{fstype!~"tmpfs"}[1h], 24 * 3600) < 0 and ON (instance, device, mountpoint) node_filesystem_readonly == 0
......@@ -138,7 +138,7 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $labels.name }} a crashé sur {{ $labels.instance }}
summary: "{{ $labels.name }} a crashé sur {{ $labels.instance }}"
# 0B is so hot
# En pratique c'est mauvais de tourner des disques trop chauds
......@@ -314,7 +314,7 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $value }} paquet(s) APT sont inutile(s) sur {{ $labels.instance }}
summary: "{{ $value }} paquet(s) APT sont inutile(s) sur {{ $labels.instance }}"
- alert: AptOrphans
expr: apt_orphans > 10
......@@ -322,7 +322,7 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $value }} paquet(s) APT sont orphelins sur {{ $labels.instance }}
summary: "{{ $value }} paquet(s) APT sont orphelins sur {{ $labels.instance }}"
- alert: MailqNotEmpty
expr: postfix_mailq_length > 25
......@@ -330,7 +330,7 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $value }} mails dans la mailq sur {{ $labels.instance }}
summary: "{{ $value }} mails dans la mailq sur {{ $labels.instance }}"
- alert: NoRadiusLogin
expr: rate(radiusd_access_ok[3m]) == 0
......@@ -346,6 +346,6 @@ groups:
labels:
severity: warning
annotations:
summary: {{ $labels.disk }} sur {{ $labels.instance }} a {{ $value }} secteurs réalloués
summary: "{{ $labels.disk }} sur {{ $labels.instance }} a {{ $value }} secteurs réalloués"
{% endraw %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment