2017-03-09 06:12:27 -05:00
|
|
|
{% from "prometheus/map.jinja" import server with context %}
|
|
|
|
{%- if server.enabled %}
|
|
|
|
|
2017-05-09 03:45:44 -04:00
|
|
|
{%- if pillar.docker is defined and pillar.docker.host is defined %}
|
2017-03-09 06:12:27 -05:00
|
|
|
|
|
|
|
{{server.dir.config}}/prometheus.yml:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://prometheus/files/prometheus.yml
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
{{server.dir.config}}/alerts.yml:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://prometheus/files/alerts.yml
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|