Skip to content

Commit f561147

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 e2f8332 commit f561147

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
@@ -170,6 +170,9 @@ static int collect_metrics(struct flb_me *me)
170170
if (ctx->http_server == FLB_TRUE) {
171171
/* v1 metrics (old) */
172172
flb_hs_push_pipeline_metrics(ctx->http_ctx, mp_sbuf.data, mp_sbuf.size);
173+
if (ctx->health_check == FLB_TRUE) {
174+
flb_hs_push_health_metrics(ctx->http_ctx, mp_sbuf.data, mp_sbuf.size);
175+
}
173176
}
174177
#endif
175178
msgpack_sbuffer_destroy(&mp_sbuf);

0 commit comments

Comments
 (0)