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)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 15:01:17 +0000 (16:01 +0100)
commit5f4fe64ea7d250f0927e3f250515319b3588ae10
treeca757de48d1b04755d7ed894216ef9d6fd938333
parentb794eb91aa57be36c90439a7f1574a757ad84e9d
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>
src/stats-proxy.c