2018-01-26 07:35:38 -05:00
|
|
|
{%- if pillar.prometheus.get('server', {}).get('enabled', False) or
|
|
|
|
pillar.prometheus.get('relay', {}).get('enabled', False) or
|
2018-04-25 04:38:04 -04:00
|
|
|
pillar.prometheus.get('alerta', {}).get('enabled', False) or
|
2017-06-23 06:28:48 -04:00
|
|
|
pillar.prometheus.alertmanager is defined or
|
|
|
|
pillar.prometheus.exporters is defined %}
|
2017-05-09 03:45:44 -04:00
|
|
|
include:
|
2018-01-26 07:35:38 -05:00
|
|
|
{%- if pillar.prometheus.get('server', {}).get('enabled', False) %}
|
2017-05-09 03:45:44 -04:00
|
|
|
- prometheus.server
|
|
|
|
{%- endif %}
|
2018-01-26 07:35:38 -05:00
|
|
|
{%- if pillar.prometheus.get('relay', {}).get('enabled', False) %}
|
|
|
|
- prometheus.relay
|
|
|
|
{%- endif %}
|
2018-04-25 04:38:04 -04:00
|
|
|
{%- if pillar.prometheus.get('alerta', {}).get('enabled', False) %}
|
|
|
|
- prometheus.alerta
|
|
|
|
{%- endif %}
|
2017-05-09 03:45:44 -04:00
|
|
|
{%- if pillar.prometheus.alertmanager is defined %}
|
|
|
|
- prometheus.alertmanager
|
|
|
|
{%- endif %}
|
2017-06-23 06:28:48 -04:00
|
|
|
{%- if pillar.prometheus.exporters is defined %}
|
|
|
|
- prometheus.exporters
|
|
|
|
{%- endif %}
|
2017-05-09 03:45:44 -04:00
|
|
|
{%- endif %}
|