feat: add haproxy exporter
- add admin socket for exporter
This commit is contained in:
parent
dd82d63b41
commit
5725d092b8
@ -15,6 +15,7 @@ profiles::haproxy::server::globals:
|
||||
stats:
|
||||
- timeout 30s
|
||||
- socket /var/lib/haproxy/stats
|
||||
- socket /var/lib/haproxy/admin.sock mode 660 level admin
|
||||
ca-base: /etc/ssl/certs
|
||||
crt-base: /etc/ssl/private
|
||||
ssl-default-bind-ciphers: EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
|
||||
@ -89,3 +90,6 @@ profiles::haproxy::backends:
|
||||
http-request:
|
||||
- set-header X-Forwarded-Port %[dst_port]
|
||||
- add-header X-Forwarded-Proto https if { dst_port 443 }
|
||||
|
||||
prometheus::haproxy_exporter::cnf_scrape_uri: unix:/var/lib/haproxy/stats
|
||||
prometheus::haproxy_exporter::export_scrape_job: true
|
||||
|
||||
@ -8,4 +8,5 @@ profiles::metrics::server::scrape_jobs:
|
||||
- bind
|
||||
- puppetdb
|
||||
- systemd
|
||||
- haproxy
|
||||
profiles::metrics::server::localstorage: /data/prometheus
|
||||
|
||||
@ -55,6 +55,7 @@ class profiles::haproxy::server (
|
||||
include profiles::haproxy::frontends # create frontends
|
||||
include profiles::haproxy::backends # create backends
|
||||
include profiles::haproxy::listeners # create listeners
|
||||
include prometheus::haproxy_exporter # generate metrics
|
||||
|
||||
Class['profiles::haproxy::certlist']
|
||||
-> Class['profiles::haproxy::dns']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user