2017-03-09 06:12:27 -05:00
|
|
|
{% set server = salt['grains.filter_by']({
|
2017-06-22 08:58:19 -04:00
|
|
|
'default': {
|
2017-12-20 05:28:41 -05:00
|
|
|
'version': 2.0,
|
2018-01-26 07:35:38 -05:00
|
|
|
'pkgs': ['prometheus-bin'],
|
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')) %}
|
|
|
|
|
2018-01-26 07:35:38 -05:00
|
|
|
{% set relay = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'pkgs': ['prometheus-relay']
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('prometheus:relay')) %}
|
|
|
|
|
2017-03-09 06:12:27 -05:00
|
|
|
{% 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
|
|
|
|
2018-06-29 12:08:49 -04:00
|
|
|
{% set pushgateway = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'enabled': True,
|
|
|
|
'dir': {
|
|
|
|
'data': '/srv/volumes/local/pushgateway',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('prometheus:pushgateway')) %}
|
|
|
|
|
2017-07-25 10:11:43 -04:00
|
|
|
{%- set monitoring = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'remote_storage_adapter': {
|
2018-05-03 09:28:45 -04:00
|
|
|
'sent_vs_received_ratio': 0.9,
|
|
|
|
'ignored_vs_sent_ratio': 0.05,
|
2017-09-25 06:52:58 -04:00
|
|
|
},
|
|
|
|
'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')) %}
|
2018-04-25 04:38:04 -04:00
|
|
|
|
|
|
|
{% set alerta = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'config_dir': '/srv/volumes/local/alerta',
|
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('prometheus:alerta')) %}}
|
2018-05-03 09:28:45 -04:00
|
|
|
|
2018-06-14 14:24:29 -04:00
|
|
|
{% set gainsight = salt['grains.filter_by']({
|
|
|
|
'default': {
|
|
|
|
'queries': {
|
2018-06-26 15:33:25 -04:00
|
|
|
},
|
|
|
|
'crontab': {
|
|
|
|
'duration': '0 0 * * *'
|
|
|
|
},
|
2018-06-14 14:24:29 -04:00
|
|
|
}
|
|
|
|
}, merge=salt['pillar.get']('prometheus:gainsight')) %}}
|
|
|
|
|