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', {})) %}
|
2017-07-25 10:11:43 -04:00
|
|
|
|
|
|
|
{%- set monitoring = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'remote_storage_adapter': {
|
|
|
|
'sent_vs_received_ratio': 10.0,
|
|
|
|
'ignored_vs_sent_ratio': 5.0,
|
|
|
|
},
|
2017-09-25 06:52:58 -04:00
|
|
|
'alertmanager': {
|
|
|
|
'notification_failed_rate': 0.3
|
|
|
|
},
|
|
|
|
'prometheus': {
|
|
|
|
'remote_storage_queue_full_percent': 75.0,
|
|
|
|
},
|
2017-07-25 10:11:43 -04:00
|
|
|
},
|
|
|
|
}, grain='os_family', merge=salt['pillar.get']('prometheus:monitoring')) %}
|
|
|
|
|
|
|
|
{% set remote_storage_adapter = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('prometheus:remote_storage_adapter')) %}
|