add varnish exporter

This commit is contained in:
2021-10-08 15:22:59 +02:00
parent e01e571906
commit 4c9be50c29
6 changed files with 90 additions and 24 deletions

View File

@ -107,3 +107,14 @@ scrape_configs:
- {{ target }}:8404
{% endfor %}
{% endif %}
{% if prometheus_varnish_exporter_targets is defined %}
- job_name: varnish
scrape_interval: 30s
scrape_timeout: 10s
static_configs:
- targets:
{% for target in prometheus_varnish_exporter_targets %}
- {{ target }}:9131
{% endfor %}
{% endif %}

View File

@ -1,10 +1,10 @@
[Unit]
Description=Prometheus Varnish Exporter
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/prometheus-varnish-exporter
[Install]
WantedBy=multi-user.target