formula-prometheus-ng/prometheus/map.jinja

12 lines
918 B
Text
Raw Normal View History

2016-10-04 11:03:07 -04:00
{% import_yaml 'prometheus/defaults.yaml' as defaults %}
2017-11-20 20:17:09 -05:00
{% set prometheus = salt['pillar.get']('prometheus', default=defaults.prometheus, merge=True) %}
2017-11-20 20:17:09 -05:00
{% do prometheus.alertmanager.update({'version_path': prometheus.alertmanager.install_dir ~ "/alertmanager-" ~ prometheus.alertmanager.version}) %}
{% do prometheus.server.update({'version_path': prometheus.server.install_dir ~ "/prometheus-" ~ prometheus.server.version}) %}
{% do prometheus.exporter.node.update({'version_path': prometheus.exporter.node.install_dir ~ "/node_exporter-" ~ prometheus.exporter.node.version}) %}
{% do prometheus.exporter.blackbox.update({'version_path': prometheus.exporter.blackbox.install_dir ~ "/blackbox_exporter-" ~ prometheus.exporter.blackbox.version}) %}
{% do prometheus.exporter.haproxy.update({'version_path': prometheus.exporter.haproxy.install_dir ~ "/haproxy_exporter-" ~ prometheus.exporter.haproxy.version}) %}