]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: add stats size as a parameter for csv/json dump
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2020 16:32:01 +0000 (18:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 07:06:10 +0000 (09:06 +0200)
commit97323c9ed40b88df2e96c6d208a758a04214c146
treea4e0e5f1711b6e3a4249f75c67f4114f45607c27
parent3ca927e68f901d0246c55504013aa190b7aebdd2
MINOR: stats: add stats size as a parameter for csv/json dump

Render the stats size parametric in csv/json dump functions. This is
needed for the future patch which provides dynamic stats. For now the
static value ST_F_TOTAL_FIELDS is provided.

Remove unused parameter px on stats_dump_one_line.

This patch is needed to extend stat support to components other than
proxies objects.
include/haproxy/stats.h
src/stats.c