]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: duplicate 3 fields in bytes in info
authorWilliam Dauchy <wdauchy@gmail.com>
Fri, 15 Jan 2021 21:41:37 +0000 (22:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Jan 2021 17:59:30 +0000 (18:59 +0100)
commita8766cfad14e57e5d4547d98232d803d8dd572bf
tree067de04c26be273704e01e7763a130cd74daa483
parentef4e45ca5565f1f7144ddf150f48d65baf186b4b
MINOR: stats: duplicate 3 fields in bytes in info

in order to prepare a possible merge of fields between haproxy stats and
prometheus, duplicate 3 fields:
  INF_MEMMAX
  INF_POOL_ALLOC
  INF_POOL_USED
Those were specifically named in MB unit which is not what prometheus
recommends. We therefore used them but changed the unit while doing the
calculation. It created a specific case for that, up to the description.
This patch:
- removes some possible confusion, i.e. using MB field for bytes
- will permit an easier merge of fields such as description

First consequence for now, is that we can remove the calculation on
prometheus side and move it on `fill_info`.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
contrib/prometheus-exporter/service-prometheus.c
include/haproxy/stats-t.h
src/stats.c