formula-prometheus/prometheus/init.sls
Dmitry Kalashnik 38242186dd Add alerta to prometheus
Change-Id: I0349936dc683475e18155cf5f8ca750d06482cfb
2018-04-25 15:39:59 +04:00

22 lines
833 B
Text

{%- if pillar.prometheus.get('server', {}).get('enabled', False) or
pillar.prometheus.get('relay', {}).get('enabled', False) or
pillar.prometheus.get('alerta', {}).get('enabled', False) or
pillar.prometheus.alertmanager is defined or
pillar.prometheus.exporters is defined %}
include:
{%- if pillar.prometheus.get('server', {}).get('enabled', False) %}
- prometheus.server
{%- endif %}
{%- if pillar.prometheus.get('relay', {}).get('enabled', False) %}
- prometheus.relay
{%- endif %}
{%- if pillar.prometheus.get('alerta', {}).get('enabled', False) %}
- prometheus.alerta
{%- endif %}
{%- if pillar.prometheus.alertmanager is defined %}
- prometheus.alertmanager
{%- endif %}
{%- if pillar.prometheus.exporters is defined %}
- prometheus.exporters
{%- endif %}
{%- endif %}