Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
float
Commits
20e1f56c
Commit
20e1f56c
authored
Jun 11, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alertmanager config
The root route must not have matchers, create a child one instead.
parent
90c089aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
roles/prometheus/templates/alertmanager.yml.j2
roles/prometheus/templates/alertmanager.yml.j2
+9
-4
No files found.
roles/prometheus/templates/alertmanager.yml.j2
View file @
20e1f56c
...
...
@@ -14,11 +14,15 @@ route:
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: default
# No delivery of alerts by default.
receiver: null
# Only severity=page alerts are ever sent anywhere.
match:
severity: page
routes:
- receiver: 'alert-email'
match:
severity: page
# The following inhibit rules are meant to work both with the job/host
# hierarchy (for standard metrics) and with the probe/target one (for
...
...
@@ -44,7 +48,8 @@ inhibit_rules:
equal: ['host']
receivers:
- name: default
- name: null
- name: 'alert-email'
email_configs:
- to: '{{ alert_email }}'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment