]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: convert counters to new column definition
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 3 Apr 2024 15:20:50 +0000 (17:20 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Apr 2024 08:20:57 +0000 (10:20 +0200)
commit66152526566ede3e6b716912ac0a4676f75d4245
treea20d0dfd06c5e806bc8089c790477b0c2895b838
parent168301411dcbd07a8c386e1f8e3d0809fc0a457e
MEDIUM: stats: convert counters to new column definition

Convert most of proxy counters statistics to new "struct stat_col"
definition. Remove their corresponding switch..case entries in
stats_fill_*_line() functions. Their value are automatically calculate
via me_generate_field() invocation.

Along with this, also complete stcol_hide() when some stats should be
hidden.

Only a few counters where not converted. This is because they rely on
values stored outside of fe/be_counters structure, which
me_generate_field() cannot use for now.
include/haproxy/stats-t.h
src/stats.c