31bfa9d94c
Change-Id: If5cf3662f96311a5f37055c0f62934ba5407a978
19 lines
514 B
Django/Jinja
19 lines
514 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')) %}
|
|
{%- do salt['defaults.merge'](exporters, grains.get('prometheus', {}).get('exporters', {})) %}
|