formula-prometheus-ng/prometheus/map.jinja

13 lines
1.2 KiB
Django/Jinja

{% import_yaml 'prometheus/defaults.yaml' as defaults %}
{% set prometheus = salt['pillar.get']('prometheus', default=defaults.prometheus, merge=True) %}
{% 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}) %}
{% do prometheus.exporter.rabbitmq.update({'version_path': prometheus.exporter.rabbitmq.install_dir ~ "/rabbitmq_exporter-" ~ prometheus.exporter.rabbitmq.version}) %}
{% do prometheus.exporter.postgres.update({'version_path': prometheus.exporter.postgres.install_dir ~ "/postgres_exporter_v" ~ prometheus.exporter.postgres.version}) %}