File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
include/fluent-bit/http_server Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ struct flb_hs {
5454
5555struct flb_hs * flb_hs_create (const char * listen , const char * tcp_port ,
5656 struct flb_config * config );
57+ int flb_hs_push_health_metrics (struct flb_hs * hs , void * data , size_t size );
5758int flb_hs_push_pipeline_metrics (struct flb_hs * hs , void * data , size_t size );
5859int flb_hs_push_storage_metrics (struct flb_hs * hs , void * data , size_t size );
5960
Original file line number Diff line number Diff line change @@ -37,10 +37,15 @@ static void cb_root(mk_request_t *request, void *data)
3737 mk_http_done (request );
3838}
3939
40+ /* Ingest health metrics into the web service context */
41+ int flb_hs_push_health_metrics (struct flb_hs * hs , void * data , size_t size )
42+ {
43+ return mk_mq_send (hs -> ctx , hs -> qid_health , data , size );
44+ }
45+
4046/* Ingest pipeline metrics into the web service context */
4147int flb_hs_push_pipeline_metrics (struct flb_hs * hs , void * data , size_t size )
4248{
43- mk_mq_send (hs -> ctx , hs -> qid_health , data , size );
4449 return mk_mq_send (hs -> ctx , hs -> qid_metrics , data , size );
4550}
4651
You can’t perform that action at this time.
0 commit comments