Skip to content

Commit 93097de

Browse files
committed
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 b789cef) Signed-off-by: Christopher Faulet <[email protected]>
1 parent 01e25a4 commit 93097de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

addons/promex/service-prometheus.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,6 @@ static int promex_dump_ts_header(const struct ist name, const struct ist desc, e
438438
t = ist("gauge");
439439
}
440440

441-
if (istcat(out, ist("# HELP "), max) == -1 ||
442-
istcat(out, name, max) == -1 ||
443-
istcat(out, ist(" "), max) == -1)
444-
goto full;
445-
446441
if (istcat(out, ist("# HELP "), max) == -1 ||
447442
istcat(out, name, max) == -1 ||
448443
istcat(out, ist(" "), max) == -1 ||

0 commit comments

Comments
 (0)