BUG/MINOR: contrib/prometheus-exporter: Add missing label for ST_F_HRSP_1XX
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Feb 2021 13:55:37 +0000 (14:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Feb 2021 14:16:33 +0000 (15:16 +0100)
commit32ef48e984deb96ff20b8cb6c98311e41cadb772
treee2433942052ec5a817ca5e25d40233df9a29fb12
parent1a68cd068915efa3f943f9114e92d99c53c01382
BUG/MINOR: contrib/prometheus-exporter: Add missing label for ST_F_HRSP_1XX

Since the labels are dynamically created for each metric, the "code" label
of the ST_F_HRSP_1XX field is missing. To fix the bug, this metric is
handled in the same way the other ST_F_HRSP_* field are. We only take care
to dump the metric header only once.

This bug was introduced by the commit 5a2f93873 ("MEDIUM:
contrib/prometheus-exporter: Use dynamic labels instead of static ones"). No
backport needed.
contrib/prometheus-exporter/service-prometheus.c