Skip to content

Commit c996870

Browse files
nokute78edsiper
authored andcommitted
metrics_exporter: use flb_hs_push_health_metrics when health check is registered
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 6d7c185 commit c996870

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flb_metrics_exporter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ static int collect_metrics(struct flb_me *me)
169169
if (ctx->http_server == FLB_TRUE) {
170170
/* v1 metrics (old) */
171171
flb_hs_push_pipeline_metrics(ctx->http_ctx, mp_sbuf.data, mp_sbuf.size);
172+
if (ctx->health_check == FLB_TRUE) {
173+
flb_hs_push_health_metrics(ctx->http_ctx, mp_sbuf.data, mp_sbuf.size);
174+
}
172175
}
173176
#endif
174177
msgpack_sbuffer_destroy(&mp_sbuf);

0 commit comments

Comments
 (0)