BUG/MINOR: promex: Remove Help prefix repeated twice for each metric
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Jul 2024 08:33:03 +0000 (10:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Jul 2024 06:50:39 +0000 (08:50 +0200)
commit93097de9869a9b5bfc07b4fb2241228be0fbf798
treefc29c767b3ce43d0bde2b0dfd8202b1756048d10
parent01e25a4cf2ce667745fb04c01153f3d9f56cc8ba
BUG/MINOR: promex: Remove Help prefix repeated twice for each metric

When the support for modules was added, the function producing the #HELP
line of each metric was refactored. Since then, the prefix "#HELP
<metric-name>" is printed twice because a code block was not removed. It is
now fixed.

This patch must be backported to 3.0.

(cherry picked from commit b789cef91f5ac6123b130f5474b44fb7c57106ae)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
addons/promex/service-prometheus.c