From 0661b0ff8c1cac16ff747e86b8f5596a8ebf6782 Mon Sep 17 00:00:00 2001 From: ajnouri Date: Wed, 1 Nov 2017 02:44:11 +0100 Subject: [PATCH] add stats section to the default configuration. --- docker/haproxy/haproxy.cfg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/haproxy/haproxy.cfg b/docker/haproxy/haproxy.cfg index 515b859..540fbca 100644 --- a/docker/haproxy/haproxy.cfg +++ b/docker/haproxy/haproxy.cfg @@ -44,3 +44,12 @@ backend app server app1 192.168.41.1:80 check server app2 192.168.41.2:80 check server app3 192.168.41.3:80 check + +#--------------------------------------------------------------------- +# Monitoring stats +#--------------------------------------------------------------------- +listen stats + bind *:1234 + stats enable + stats uri / + stats hide-version