blob: 0e6cdadc6d3e8e01b332c455970bacf730ee39ec [file] [log] [blame]
Bartosz Kupidura5e9fb1d2018-01-26 13:35:38 +01001{%- if pillar.prometheus.get('server', {}).get('enabled', False) or
2 pillar.prometheus.get('relay', {}).get('enabled', False) or
Dmitry Kalashnik38242182018-04-25 12:38:04 +04003 pillar.prometheus.get('alerta', {}).get('enabled', False) or
Olivier Bourdone8c7be72017-06-23 12:28:48 +02004 pillar.prometheus.alertmanager is defined or
5 pillar.prometheus.exporters is defined %}
Filip Pytlound92d2d72017-05-09 09:45:44 +02006include:
Bartosz Kupidura5e9fb1d2018-01-26 13:35:38 +01007 {%- if pillar.prometheus.get('server', {}).get('enabled', False) %}
Filip Pytlound92d2d72017-05-09 09:45:44 +02008 - prometheus.server
9 {%- endif %}
Bartosz Kupidura5e9fb1d2018-01-26 13:35:38 +010010 {%- if pillar.prometheus.get('relay', {}).get('enabled', False) %}
11 - prometheus.relay
12 {%- endif %}
Dmitry Kalashnik38242182018-04-25 12:38:04 +040013 {%- if pillar.prometheus.get('alerta', {}).get('enabled', False) %}
14 - prometheus.alerta
15 {%- endif %}
Filip Pytlound92d2d72017-05-09 09:45:44 +020016 {%- if pillar.prometheus.alertmanager is defined %}
17 - prometheus.alertmanager
18 {%- endif %}
Olivier Bourdone8c7be72017-06-23 12:28:48 +020019 {%- if pillar.prometheus.exporters is defined %}
20 - prometheus.exporters
21 {%- endif %}
Filip Pytlound92d2d72017-05-09 09:45:44 +020022{%- endif %}