]> git.kaiwu.me - haproxy.git/commit
MEDIUM: counters: return aggregate extra counters in ->fill_stats()
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Feb 2026 17:38:55 +0000 (18:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 16:03:53 +0000 (17:03 +0100)
commit9019a5db933625f4d3da5158765640cbaa441f9e
treeba93fff6b377f501df03b0a9f8d9f829669d8aa2
parentde0eddf5120c71a3e6c5326d20a45cf55ba0d381
MEDIUM: counters: return aggregate extra counters in ->fill_stats()

Now thanks to new macro EXTRA_COUNTERS_AGGR() we can iterate over all
thread groups storages when returning the data for a given metric. This
remains convenient and mostly transparent. The caller continues to pass
the pointer to the metric in the first group, and offsets are calculated
for all other groups and data summed. For now all groups except the
first one contain only zeroes but reported values are nevertheless
correct.
include/haproxy/counters.h
src/h3_stats.c
src/mux_h1.c
src/mux_h2.c
src/quic_stats.c
src/ssl_sock.c