{% 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')) %} | |
{%- do salt['defaults.merge'](exporters, grains.get('prometheus', {}).get('exporters', {})) %} |