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
f8749d7d
Verified
Commit
f8749d7d
authored
5 years ago
by
me5na7qbjqbrp
Browse files
Options
Downloads
Patches
Plain Diff
[prometheus] You're a bad spammer boy
parent
0d33b2c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible.cfg
+2
-2
2 additions, 2 deletions
ansible.cfg
roles/prometheus-alertmanager/templates/prometheus/alertmanager.yml.j2
+10
-11
10 additions, 11 deletions
...eus-alertmanager/templates/prometheus/alertmanager.yml.j2
with
12 additions
and
13 deletions
ansible.cfg
+
2
−
2
View file @
f8749d7d
#
Crans
Ansible configuration
# Ansible
configuration
[defaults]
# Do
not create .retry files
retry_files_enabled
= False
# Use
Crans
inventory
# Use
inventory
inventory
= ./hosts
# Custom
header in templates
...
...
This diff is collapsed.
Click to expand it.
roles/prometheus-alertmanager/templates/prometheus/alertmanager.yml.j2
+
10
−
11
View file @
f8749d7d
# {{ ansible_managed }}
# See https://prometheus.io/docs/alerting/configuration/ for documentation.
global:
# The smarthost and SMTP sender used for mail notifications.
smtp_smarthost: '
smtp.adm.crans.org
:25'
smtp_from: '
roots@crans
.org'
smtp_smarthost: '
localhost
:25'
smtp_from: '
alertmanager@example
.org'
#smtp_auth_username: 'alertmanager'
#smtp_auth_password: 'password'
smtp_require_tls: false
# The auth token for Hipchat.
hipchat_auth_token: '1234556789'
# Alternative host for Hipchat.
hipchat_api_url: 'https://hipchat.foobar.org/'
# The directory from which notification templates are read.
templates:
...
...
@@ -17,26 +21,24 @@ route:
# The labels by which incoming alerts are grouped together. For example,
# multiple alerts coming in for cluster=A and alertname=LatencyHigh would
# be batched into a single group.
#group_by: ['alertname', 'cluster', 'service']
group_by: [] # do not group for text chat
group_by: ['...'] # do not group for text chat
# When a new group of alerts is created by an incoming alert, wait at
# least 'group_wait' to send the initial notification.
# This way ensures that you get multiple alerts for the same group that start
# firing shortly after another are batched together on the first
# notification.
group_wait:
1m
group_wait:
30s
# When the first notification was sent, wait 'group_interval' to send a batch
# of new alerts that started firing for that group.
group_interval:
1
m
group_interval:
5
m
# If an alert has successfully been sent, wait 'repeat_interval' to
# resend them.
repeat_interval: 12h
# A default receiver
#receiver: team-roots-mails
receiver: webhook-ninjabot
...
...
@@ -54,9 +56,6 @@ inhibit_rules:
receivers:
- name: 'team-roots-mails'
email_configs:
- to: 'roots@crans.org'
- name: 'webhook-ninjabot'
webhook_configs:
- url: 'http://zamok.adm.crans.org:5000/'
...
...
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