Use quotes to escape YAML dicts

certbot_on_virtu
Alexandre Iooss 2021-06-07 22:20:01 +02:00 committed by Yohann D'ANELLO
parent 0b4c77eb0c
commit ad81276ac9
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ groups:
labels: labels:
severity: critical severity: critical
annotations: annotations:
summary: {{ $labels.instance }} ({{ $labels.job }}) est manquant summary: "{{ $labels.instance }} ({{ $labels.job }}) est manquant"
- alert: PrometheusConfigurationReloadFailure - alert: PrometheusConfigurationReloadFailure
expr: prometheus_config_last_reload_successful != 1 expr: prometheus_config_last_reload_successful != 1
@ -106,7 +106,7 @@ groups:
labels: labels:
severity: warning severity: warning
annotations: annotations:
summary: {{ $labels.mountpoint }} sur {{ $labels.instance }} arrive à saturation ({{ $value }}%) summary: "{{ $labels.mountpoint }} sur {{ $labels.instance }} arrive à saturation ({{ $value }}%)"
- alert: HostDiskWillFillIn24Hours - 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 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: labels:
severity: warning severity: warning
annotations: annotations:
summary: {{ $labels.name }} a crashé sur {{ $labels.instance }} summary: "{{ $labels.name }} a crashé sur {{ $labels.instance }}"
# 0B is so hot # 0B is so hot
# En pratique c'est mauvais de tourner des disques trop chauds # En pratique c'est mauvais de tourner des disques trop chauds
@ -314,7 +314,7 @@ groups:
labels: labels:
severity: warning severity: warning
annotations: 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 - alert: AptOrphans
expr: apt_orphans > 10 expr: apt_orphans > 10
@ -322,7 +322,7 @@ groups:
labels: labels:
severity: warning severity: warning
annotations: annotations:
summary: {{ $value }} paquet(s) APT sont orphelins sur {{ $labels.instance }} summary: "{{ $value }} paquet(s) APT sont orphelins sur {{ $labels.instance }}"
- alert: MailqNotEmpty - alert: MailqNotEmpty
expr: postfix_mailq_length > 25 expr: postfix_mailq_length > 25
@ -330,7 +330,7 @@ groups:
labels: labels:
severity: warning severity: warning
annotations: annotations:
summary: {{ $value }} mails dans la mailq sur {{ $labels.instance }} summary: "{{ $value }} mails dans la mailq sur {{ $labels.instance }}"
- alert: NoRadiusLogin - alert: NoRadiusLogin
expr: rate(radiusd_access_ok[3m]) == 0 expr: rate(radiusd_access_ok[3m]) == 0
@ -346,6 +346,6 @@ groups:
labels: labels:
severity: warning severity: warning
annotations: 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 %} {% endraw %}