2017-03-09 06:12:27 -05:00
|
|
|
{% set server = salt['grains.filter_by']({
|
2017-06-22 08:58:19 -04:00
|
|
|
'default': {
|
2017-06-26 09:34:08 -04:00
|
|
|
'target': {
|
|
|
|
'static': {
|
|
|
|
},
|
|
|
|
},
|
2017-06-22 08:58:19 -04:00
|
|
|
},
|
2017-03-09 06:12:27 -05:00
|
|
|
}, merge=salt['pillar.get']('prometheus:server')) %}
|
|
|
|
|
|
|
|
{% set alertmanager = salt['grains.filter_by']({
|
2017-06-22 08:58:19 -04:00
|
|
|
'default': {
|
|
|
|
},
|
2017-03-09 06:12:27 -05:00
|
|
|
}, merge=salt['pillar.get']('prometheus:alertmanager')) %}
|
2017-06-23 06:28:48 -04:00
|
|
|
|
|
|
|
{% set exporters = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('prometheus:exporters')) %}
|
2017-07-10 04:01:46 -04:00
|
|
|
{%- do salt['defaults.merge'](exporters, grains.get('prometheus', {}).get('exporters', {})) %}
|