Skip to content

Commit 086d94d

Browse files
committed
out_prometheus_exporter: run flushes on an output worker
Use one output worker by default so metrics decoding and Prometheus text encoding do not block the main engine event loop. Signed-off-by: Stefano Tondo <stondo@gmail.com>
1 parent 4c43d30 commit 086d94d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • plugins/out_prometheus_exporter

plugins/out_prometheus_exporter/prom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,4 +313,5 @@ struct flb_output_plugin out_prometheus_exporter_plugin = {
313313
.flags = FLB_OUTPUT_NET | FLB_OUTPUT_HTTP_SERVER,
314314
.event_type = FLB_OUTPUT_METRICS,
315315
.config_map = config_map,
316+
.workers = 1,
316317
};

0 commit comments

Comments
 (0)