]> git.kaiwu.me - haproxy.git/commit
MINOR: stats: report the listener's protocol along with the address in stats
authorWilly Tarreau <w@1wt.eu>
Thu, 11 May 2023 12:49:43 +0000 (14:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 May 2023 12:52:56 +0000 (14:52 +0200)
commit4cfb0019e65bce79953164eddf54c1bbb61add62
treee67ddae46694661d03e8a31e8d54bbe458a0b5e4
parent5f67b17a5949ce4ff02b84798c62918297fdb92d
MINOR: stats: report the listener's protocol along with the address in stats

When "optioon socket-stats" is used in a frontend, its listeners have
their own stats and will appear in the stats page. And when the stats
page has "stats show-legends", then a tooltip appears on each such
socket with ip:port and ID. The problem is that since QUIC arrived, it
was not possible to distinguish the TCP listeners from the QUIC ones
because no protocol indication was mentioned. Now we add a "proto"
legend there with the protocol name, so we can see "tcp4" or "quic6"
and figure how the socket is bound.
include/haproxy/stats-t.h
src/stats.c