Skip to content
Snippets Groups Projects
Commit 918af82e authored by skorpy's avatar skorpy :construction_worker:
Browse files

add prometheus scraping to varnish exporter

parent 8d9b7fd9
Branches
No related tags found
1 merge request!484Grafana: Use Docker
......@@ -94,3 +94,8 @@ scrape_configs:
file_sd_configs:
- files:
- /etc/prometheus/targets/cadvisor.yml
- job_name: varnish
file_sd_configs:
- files:
- /etc/prometheus/targets/varnish.yml
---
{% set targets = salt['prometheus.prometheus_targets_for_grain']('prometheus_varnish_export') %}
- targets: {{ targets|yaml }}
domain (ip ip6) {
table filter {
chain INPUT {
proto tcp dport (9131) saddr (185.206.209.130 2a06:8187:fb11:1::2:1) ACCEPT;
}
}
}
......@@ -43,3 +43,14 @@ prometheus-addgroup-varnish:
- system: True
- addusers:
- prometheus
/etc/ferm/conf.d/40-varnish-exporter.conf:
file.managed:
- source: salt://varnish/files/ferm-varnish-exporter.conf.j2
- user: root
- group: root
- mode: '0644'
prometheus_varnish_export:
grains.present:
- value: {{ grains.nodename }}:9131
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment