formula-prometheus/prometheus/files/alertmanager.yml
Bartosz Kupidura 2f70396a78 Add prometheus, alertmanager, pushgateway configs
Change-Id: I7f146e0207ada58f0723b14d0a625a6bce67ea9f
2017-03-17 17:50:23 +01:00

20 lines
633 B
YAML

{% from "prometheus/map.jinja" import alertmanager with context %}
global:
{%- if alertmanager.config.global is defined %}
{{ alertmanager.config.global | yaml(False) | indent(2, true) }}
{%- endif %}
route:
{%- if alertmanager.config.route is defined %}
{{ alertmanager.config.route | yaml(False) | indent(2, true) }}
{%- endif %}
inhibit_rules:
{%- if alertmanager.config.inhibit_rules is defined %}
{{ alertmanager.config.inhibit_rules | yaml(False) | indent(2, true) }}
{%- endif %}
receivers:
{%- if alertmanager.config.receivers is defined %}
{{ alertmanager.config.receivers | yaml(False) | indent(2, true) }}
{%- endif %}