Merge pull request 'feat: add haproxy exporter' (#38) from neoloc/haproxy_exporter into develop
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/38
This commit is contained in:
commit
c6530e34f6
@ -15,6 +15,7 @@ profiles::haproxy::server::globals:
|
|||||||
stats:
|
stats:
|
||||||
- timeout 30s
|
- timeout 30s
|
||||||
- socket /var/lib/haproxy/stats
|
- socket /var/lib/haproxy/stats
|
||||||
|
- socket /var/lib/haproxy/admin.sock mode 660 level admin
|
||||||
ca-base: /etc/ssl/certs
|
ca-base: /etc/ssl/certs
|
||||||
crt-base: /etc/ssl/private
|
crt-base: /etc/ssl/private
|
||||||
ssl-default-bind-ciphers: EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
|
ssl-default-bind-ciphers: EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
|
||||||
@ -89,3 +90,6 @@ profiles::haproxy::backends:
|
|||||||
http-request:
|
http-request:
|
||||||
- set-header X-Forwarded-Port %[dst_port]
|
- set-header X-Forwarded-Port %[dst_port]
|
||||||
- add-header X-Forwarded-Proto https if { dst_port 443 }
|
- 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
|
- bind
|
||||||
- puppetdb
|
- puppetdb
|
||||||
- systemd
|
- systemd
|
||||||
|
- haproxy
|
||||||
profiles::metrics::server::localstorage: /data/prometheus
|
profiles::metrics::server::localstorage: /data/prometheus
|
||||||
|
|||||||
@ -55,6 +55,7 @@ class profiles::haproxy::server (
|
|||||||
include profiles::haproxy::frontends # create frontends
|
include profiles::haproxy::frontends # create frontends
|
||||||
include profiles::haproxy::backends # create backends
|
include profiles::haproxy::backends # create backends
|
||||||
include profiles::haproxy::listeners # create listeners
|
include profiles::haproxy::listeners # create listeners
|
||||||
|
include prometheus::haproxy_exporter # generate metrics
|
||||||
|
|
||||||
Class['profiles::haproxy::certlist']
|
Class['profiles::haproxy::certlist']
|
||||||
-> Class['profiles::haproxy::dns']
|
-> Class['profiles::haproxy::dns']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user