Skip to content

Commit

Permalink
plugin_proxy: allow metrics type for output plugin proxy
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gracewehner committed Dec 17, 2024
1 parent b785118 commit 0cf7c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ static int flb_proxy_register_output(struct flb_plugin_proxy *proxy,

/* Plugin registration */
out->type = FLB_OUTPUT_PLUGIN_PROXY;
out->event_type = FLB_OUTPUT_LOGS | FLB_OUTPUT_METRICS;
out->proxy = proxy;
out->flags = def->flags;
out->name = flb_strdup(def->name);
Expand Down

0 comments on commit 0cf7c7a

Please sign in to comment.