From 2ccf6a6978e5efca840a766ad7862d7199b050e9 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 2 Feb 2022 18:37:09 +0100 Subject: [PATCH] haproxy options for prometheus. --- templates/haproxy.cfg.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index 2f38883..9ae9ef7 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -54,6 +54,8 @@ peers mypeers listen stats bind *:{{ haproxy_admin_port }} ssl crt {{ haproxy_cert_dir }} alpn h2,http/1.1 mode http + option http-use-htx + http-request use-service prometheus-exporter if { path /metrics } option httplog stats enable stats uri /