From 49cd42077e08c337ff84362305802e2e970a1683 Mon Sep 17 00:00:00 2001 From: Zasda Yusuf Mikail Date: Tue, 30 Jan 2024 09:01:20 +0700 Subject: [PATCH] Add prometheus metrics --- src/templates/haproxy.cfg.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/haproxy.cfg.j2 b/src/templates/haproxy.cfg.j2 index ef72f98..d2df424 100644 --- a/src/templates/haproxy.cfg.j2 +++ b/src/templates/haproxy.cfg.j2 @@ -45,6 +45,7 @@ defaults frontend stats bind *:{{ data_stats["port"] | default(1936) }} mode http + http-request use-service prometheus-exporter if { path /metrics } stats enable stats hide-version stats realm Haproxy\ Statistics