add varnish exporter
This commit is contained in:
@ -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 %}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user