1
General Discussion / Re: HAProxy plugin with prometheus exporter enabled
« on: September 03, 2021, 09:55:24 pm »
Updated to v21.7.1 and confirm the HAProxy built-in Prometheus exporter (promex) is working well now.
You can find a description how to set this up here:
https://www.haproxy.com/blog/haproxy-exposes-a-prometheus-metrics-endpoint/#configuring-prometheus
https://forum.netgate.com/topic/153766/haproxy-2-0-prometheus-monitoring-how-to
I added a Public Service through the GUI, which resulted in this config:
Hope it helps!
You can find a description how to set this up here:
https://www.haproxy.com/blog/haproxy-exposes-a-prometheus-metrics-endpoint/#configuring-prometheus
https://forum.netgate.com/topic/153766/haproxy-2-0-prometheus-monitoring-how-to
I added a Public Service through the GUI, which resulted in this config:
Code: [Select]
# Frontend: Prometheus (Prometheus metrics exporter)
frontend Prometheus
bind *:9105 name *:9105
mode http
option http-keep-alive
# tuning options
maxconn 10
timeout client 30s
# logging options
option dontlog-normal
# WARNING: pass through options below this line
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
Hope it helps!