BUG/MINOR: stats: Add missing agent stats on servers
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Jul 2021 06:04:38 +0000 (08:04 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 22 Jul 2021 06:47:55 +0000 (08:47 +0200)
commit59bab616498399a8306eff2905764c0ecccdaf70
tree5d9060ae184055ae62d64a0060000588ccd616c9
parent5fcd428c35c45f7222b9aade0c0484fcdb558de9
BUG/MINOR: stats: Add missing agent stats on servers

Agent stats were lost during the stats refactoring performed in the 2.4 to
simplify the Prometheus exporter. stats_fill_sv_stats() function must fill
ST_F_AGENT_* and ST_F_LAST_AGT stats.

This patch should fix the issue #1331. It must be backported to 2.4.
src/stats.c