Skip to content

Commit 0cf7c7a

Browse files
committed
plugin_proxy: allow metrics type for output plugin proxy
Previously, the output plugin proxy supported only logs types as this is the default if no event_type is specified. This allows the metrics type to also be routed to output proxy plugins such as the golang proxy plugin. Signed-off-by: Grace Wehner <[email protected]>
1 parent b785118 commit 0cf7c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flb_plugin_proxy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ static int flb_proxy_register_output(struct flb_plugin_proxy *proxy,
363363

364364
/* Plugin registration */
365365
out->type = FLB_OUTPUT_PLUGIN_PROXY;
366+
out->event_type = FLB_OUTPUT_LOGS | FLB_OUTPUT_METRICS;
366367
out->proxy = proxy;
367368
out->flags = def->flags;
368369
out->name = flb_strdup(def->name);

0 commit comments

Comments
 (0)