Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
ad81276a
Verified
Commit
ad81276a
authored
3 years ago
by
me5na7qbjqbrp
Committed by
ynerant
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use quotes to escape YAML dicts
parent
0b4c77eb
No related branches found
No related tags found
1 merge request
!254
Cachan
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/prometheus/templates/prometheus/alert.rules.yml.j2
+7
-7
7 additions, 7 deletions
roles/prometheus/templates/prometheus/alert.rules.yml.j2
with
7 additions
and
7 deletions
roles/prometheus/templates/prometheus/alert.rules.yml.j2
+
7
−
7
View file @
ad81276a
...
...
@@ -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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment