Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
float
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
float
Commits
963f3941
Commit
963f3941
authored
Jun 09, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameterize Prometheus alertmanager SMTP params
parent
cc4f007d
Pipeline
#3342
passed with stage
in 5 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
roles/prometheus/defaults/main.yml
roles/prometheus/defaults/main.yml
+10
-1
roles/prometheus/templates/alertmanager.yml.j2
roles/prometheus/templates/alertmanager.yml.j2
+6
-3
No files found.
roles/prometheus/defaults/main.yml
View file @
963f3941
---
alert_email
:
"
root"
# Destination (To:) of alert emails.
alert_email
:
"
root@{{
domain
}}"
# Alertmanager SMTP parameters.
alertmanager_smtp_from
:
"
prometheus@{{
domain
}}"
alertmanager_smtp_smarthost
:
"
localhost:25"
alertmanager_smtp_require_tls
:
false
alertmanager_smtp_hello
:
"
localhost"
alertmanager_smtp_auth_username
:
"
"
alertmanager_smtp_auth_password
:
"
"
roles/prometheus/templates/alertmanager.yml.j2
View file @
963f3941
global:
smtp_from: 'prometheus@{{ domain }}'
smtp_smarthost: 'mail-frontend.{{ domain }}:10025'
smtp_require_tls: false
smtp_from: '{{ alertmanager_smtp_from }}'
smtp_smarthost: '{{ alertmanager_smtp_smarthost }}'
smtp_require_tls: {{ alertmanager_smtp_require_tls }}
smtp_auth_username: '{{ alertmanager_smtp_auth_username }}'
smtp_auth_password: '{{ alertmanager_smtp_auth_password }}'
smtp_hello: '{{ alertmanager_smtp_hello }}'
templates:
- '/etc/prometheus/alertmanager_templates/*.tmpl'
...
...
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