38242186dd
Change-Id: I0349936dc683475e18155cf5f8ca750d06482cfb
22 lines
833 B
Text
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 %}
|