formula-prometheus/prometheus/map.jinja
Bartosz Kupidura 9a986bebf7 Merge grains with pillars for static targets
Change-Id: I2f85fe2f9cc67d2d03d5e8dad5ac0b74e82b0fcc
2017-06-28 09:22:42 +02:00

18 lines
418 B
Django/Jinja

{% set server = salt['grains.filter_by']({
'default': {
'target': {
'static': {
},
},
},
}, merge=salt['pillar.get']('prometheus:server')) %}
{% set alertmanager = salt['grains.filter_by']({
'default': {
},
}, merge=salt['pillar.get']('prometheus:alertmanager')) %}
{% set exporters = salt['grains.filter_by']({
'default': {
},
}, merge=salt['pillar.get']('prometheus:exporters')) %}