Skip to content

Commit a85378e

Browse files
committed
out_prometheus_exporter: fix encoding type
Signed-off-by: Eduardo Silva <[email protected]>
1 parent aebb81b commit a85378e

File tree

1 file changed

+2
-2
lines changed
  • plugins/out_prometheus_exporter

1 file changed

+2
-2
lines changed

plugins/out_prometheus_exporter/prom.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static void cb_prom_flush(const void *data, size_t bytes,
8383
}
8484

8585
/* convert to text representation */
86-
text = cmt_encode_text_create(cmt);
86+
text = cmt_encode_prometheus_create(cmt, CMT_TRUE);
8787
if (!text) {
8888
cmt_destroy(cmt);
8989
FLB_OUTPUT_RETURN(FLB_ERROR);
@@ -93,7 +93,7 @@ static void cb_prom_flush(const void *data, size_t bytes,
9393
ret = prom_http_server_mq_push_metrics(ctx->http,
9494
(char *) text,
9595
flb_sds_len(text));
96-
cmt_encode_text_destroy(text);
96+
cmt_encode_prometheus_destroy(text);
9797

9898
if (ret != 0) {
9999
FLB_OUTPUT_RETURN(FLB_ERROR);

0 commit comments

Comments
 (0)