Bartosz Kupidura | 5e9fb1d | 2018-01-26 13:35:38 +0100 | [diff] [blame] | 1 | {%- if pillar.prometheus.get('server', {}).get('enabled', False) or |
| 2 | pillar.prometheus.get('relay', {}).get('enabled', False) or |
Dmitry Kalashnik | 3824218 | 2018-04-25 12:38:04 +0400 | [diff] [blame] | 3 | pillar.prometheus.get('alerta', {}).get('enabled', False) or |
Olivier Bourdon | e8c7be7 | 2017-06-23 12:28:48 +0200 | [diff] [blame] | 4 | pillar.prometheus.alertmanager is defined or |
| 5 | pillar.prometheus.exporters is defined %} |
Filip Pytloun | d92d2d7 | 2017-05-09 09:45:44 +0200 | [diff] [blame] | 6 | include: |
Bartosz Kupidura | 5e9fb1d | 2018-01-26 13:35:38 +0100 | [diff] [blame] | 7 | {%- if pillar.prometheus.get('server', {}).get('enabled', False) %} |
Filip Pytloun | d92d2d7 | 2017-05-09 09:45:44 +0200 | [diff] [blame] | 8 | - prometheus.server |
| 9 | {%- endif %} |
Bartosz Kupidura | 5e9fb1d | 2018-01-26 13:35:38 +0100 | [diff] [blame] | 10 | {%- if pillar.prometheus.get('relay', {}).get('enabled', False) %} |
| 11 | - prometheus.relay |
| 12 | {%- endif %} |
Dmitry Kalashnik | 3824218 | 2018-04-25 12:38:04 +0400 | [diff] [blame] | 13 | {%- if pillar.prometheus.get('alerta', {}).get('enabled', False) %} |
| 14 | - prometheus.alerta |
| 15 | {%- endif %} |
Filip Pytloun | d92d2d7 | 2017-05-09 09:45:44 +0200 | [diff] [blame] | 16 | {%- if pillar.prometheus.alertmanager is defined %} |
| 17 | - prometheus.alertmanager |
| 18 | {%- endif %} |
Olivier Bourdon | e8c7be7 | 2017-06-23 12:28:48 +0200 | [diff] [blame] | 19 | {%- if pillar.prometheus.exporters is defined %} |
| 20 | - prometheus.exporters |
| 21 | {%- endif %} |
Filip Pytloun | d92d2d7 | 2017-05-09 09:45:44 +0200 | [diff] [blame] | 22 | {%- endif %} |