formula-prometheus/prometheus/map.jinja
Bartosz Kupidura 2f70396a78 Add prometheus, alertmanager, pushgateway configs
Change-Id: I7f146e0207ada58f0723b14d0a625a6bce67ea9f
2017-03-17 17:50:23 +01:00

16 lines
481 B
Django/Jinja

{% set server = salt['grains.filter_by']({
'default': {
'dir': {
'config': '/srv/volumes/prometheus-config',
'config_in_container': '/opt/prometheus/config'
},
},
}, merge=salt['pillar.get']('prometheus:server')) %}
{% set alertmanager = salt['grains.filter_by']({
'default': {
'dir': {
'config': '/srv/volumes/prometheus-config',
},
},
}, merge=salt['pillar.get']('prometheus:alertmanager')) %}