You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/templates/prometheus/config/alertmanager/config.yml.j2

21 lines
538 B
Django/Jinja

route:
receiver: smardigo #default
routes:
- match:
project: 'smardigo'
env: '{{ stage }}'
receiver: 'smardigo'
receivers:
- name: 'smardigo'
slack_configs:
- api_url: '{{ mattermost_hook_smardigo }}'
username: 'prometheus'
channel: '{{ alertmanager_channel_smardigo }}'
title: '{{ '{{' }} template "custom_title" . {{ '}}' }}'
text: '{{ '{{' }} template "custom_slack_message" . {{ '}}' }}'
send_resolved: true
templates:
- /etc/alertmanager/templates/notifications.tmpl