MINOR: contrib/prometheus-exporter: use fill_fe_stats for frontend dump
authorWilliam Dauchy <wdauchy@gmail.com>
Sun, 17 Jan 2021 17:27:46 +0000 (18:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Jan 2021 17:59:30 +0000 (18:59 +0100)
commitb9577450ea80238128913c2f5dad0cfeb22f5616
tree5f17f01c78cd83ba124ec28a16ac23b61ea31084
parent0ef54397b0e0387cb35e7b73ac5562972a678572
MINOR: contrib/prometheus-exporter: use fill_fe_stats for frontend dump

use `stats_fill_fe_stats` when possible to avoid duplicating code; make
use of field selector to get the needed field only.

this should not introduce any difference of output.

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