5e9fb1d347
Now it is able to install proemtheus on host and use it to scrape data from other prometheuses. Prod-related: PROD-17350 Change-Id: I11d65920c0e9b685dead22a5551521fa15d13f25
18 lines
658 B
Text
18 lines
658 B
Text
{%- if pillar.prometheus.get('server', {}).get('enabled', False) or
|
|
pillar.prometheus.get('relay', {}).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.alertmanager is defined %}
|
|
- prometheus.alertmanager
|
|
{%- endif %}
|
|
{%- if pillar.prometheus.exporters is defined %}
|
|
- prometheus.exporters
|
|
{%- endif %}
|
|
{%- endif %}
|