]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: convert req_tot as generic column
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Apr 2024 13:35:17 +0000 (15:35 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 2 May 2024 08:55:25 +0000 (10:55 +0200)
commit933b4ae27d447cf7e450da03512299a94964cef8
tree7f6f6c4c6a15aaa5fb8218dd7464176d294bf52b
parent56e6c57aa1e5bc8e58561f64bf94654ea0d0caf9
MINOR: stats: convert req_tot as generic column

req_tot counter is a special case as it is not managed identically
between frontend and backend side.

For the backend side, this metric is available directly into
be_counters, which allows to use a generic stat column definition.

On the frontend side however, the metric value is an aggredate of
multiple fe_counters value. This is the case since the splitting between
HTTP version introduced in the following patch :

  9969adbcdc1a79a6e8bb0a6283191d8d330a04f1
  MINOR: stats: add by HTTP version cumulated number of sessions and requests

This difference cannot be handled automatically by me_generate_field().
Add a special case in the function to produce it on frontend side
reusing the aggregated value. This not done however for stats-file as
there is no counter to preload.
src/stats.c