formula-prometheus/prometheus/init.sls
Michal Kobus 2b64974054 Enable prometheus pushgateway persistent storage
Change-Id: If539f26909bd56b168a806773bb9c6574c86bf40
Closes-bug: PROD-21073
2018-07-06 13:16:34 +02:00

26 lines
1,023 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.get('pushgateway', {}).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.get('pushgateway', {}).get('enabled', False) %}
- prometheus.pushgateway
{%- endif %}
{%- if pillar.prometheus.alertmanager is defined %}
- prometheus.alertmanager
{%- endif %}
{%- if pillar.prometheus.exporters is defined %}
- prometheus.exporters
{%- endif %}
{%- endif %}