]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: parse values from stats-file
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 24 Apr 2024 09:15:18 +0000 (11:15 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Apr 2024 09:34:02 +0000 (11:34 +0200)
commit782be288ca8184b1059626b2e1217d5b92963a11
tree1d4a1b00e2660d578b46bfa056cd5999d43bcc4a
parent374dc08611089471116d4512d16522ccf696bb92
MINOR: stats: parse values from stats-file

This patch implement parsing of counter values line from stats-file. It
reuses domain context previously set by the last header line. Each
value is separated by ',' character, relative to the list of column
names describe by the header line.

This is implemented via static function parse_stat_line(). It first
extract a GUID and retrieve the object instance. Then each numerical
value is parsed and object counters updated. For the moment, only U64
counters metrics is supported. parse_stat_line() is called on each line
until a new header line is found.
src/stats-file.c