BUG/MINOR: stats: fix capabilities and hide settings for some generic metrics
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 13 Mar 2025 10:09:00 +0000 (11:09 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 18 Mar 2025 15:48:54 +0000 (16:48 +0100)
commit9a661042ef367f8ecfd78f166560f8b433a446c9
tree0ee6f37a6f1dc889ac4acee4bd5fb974f7ab36bc
parentd54c7b8618a906999639778269bcf6044fc9f8bd
BUG/MINOR: stats: fix capabilities and hide settings for some generic metrics

Performing a diff on stats output before vs after commit 66152526
("MEDIUM: stats: convert counters to new column definition") revealed
that some metrics were not properly ported to to the new API. Namely,
"lbtot", "cli_abrt" and "srv_abrt" are now exposed on frontend and
listeners while it was not the case before.

Also, "hrsp_other" is exposed even when "mode http" wasn't set on the
proxy.

In this patch we restore original behavior by fixing the capabilities
and hide settings.

As this could be considered as a minor regression (looking at the commit
message it doesn't seem intended), better tag this as a bug. It should be
backported in 3.0 with 66152526.

(cherry picked from commit 8311be5ac60c10fc4af56e3df79031358236bc14)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 5f4fe64ea7d250f0927e3f250515319b3588ae10)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
src/stats-proxy.c