Hi Willy,

Thanks for your feedback : I forgot the "option socket-stats" in the frontend.

It's all pretty now :)

-- 
Ionel GARDAIS
Tech'Advantage CIO - IT Team manager

----- Mail original -----
De: "Willy Tarreau" <w...@1wt.eu>
À: "Ionel GARDAIS" <ionel.gard...@tech-advantage.com>
Cc: "William Lallemand" <wlallem...@haproxy.com>, "haproxy" 
<haproxy@formilux.org>
Envoyé: Mardi 21 Avril 2020 16:26:33
Objet: Re: [*EXT*] Re: Question about demo website

Hi Ionel,

On Tue, Apr 21, 2020 at 10:51:24AM +0200, Ionel GARDAIS wrote:
> thanks William,
> 
> My fronted definition is :
> frontend ft-public
>     bind ip.v.4.addr:80 name web-v4
>     bind [ip:v:6:addr]:80 name web-v6
> 
> and I'm still seeing only a Frontend entry in the table
> 
> 
> I also tried to add 
> 
>     stats show-desc
>     stats show-legends
>     stats show-node
> 
> to the dedicated stats listener with no luck.

That's what I'm having:

   frontend http-in
        option socket-stats
        bind 10.x.x.x:60080 ... name IPv4-direct
        bind 10.x.x.x:60081 ... name IPv4-cached
        bind :::80 ... v6only name IPv6-direct
        bind 127.0.0.1:60080 name local
        bind 127.0.0.1:65443 name local-https accept-proxy ssl ...
        mode    http

   (...)
   backend demo
        mode http
        stats enable
        stats show-node 1wt.eu
        #stats show-legends    # shows detailed info (ip, cookies, ...)
        stats uri /
        stats scope http-in
        stats scope www
        stats scope git
        stats scope demo

As William mentioned, the socket names are those on the "bind" lines.
The "option socket-stats" in the frontend is the one allowing to have
one stats entry per bind line.

Hoping this helps,
Willy
--
232 avenue Napoleon BONAPARTE 92500 RUEIL MALMAISON
Capital EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301


Reply via email to