formula-prometheus/prometheus/map.jinja
Bartosz Kupidura 597b0678bf Better grain handling for telegraf
Replace '-' to '_' in prometheus config dir
Add possibility to add recording rules

Change-Id: Ifc85a95ae62cb0f1b810a3b4f718e8d92f9c6209
2017-03-29 13:54:26 +02:00

16 lines
467 B
Django/Jinja

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