-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow socket sink to accept metric events #20756
Comments
I believe the |
Can confirm that sending metric events to a
Output from vector:
However trying to start with the following configuration will fail:
Adding a transform will make it start but no metrics will be sent:
|
Thanks @petmit . It looks like the |
If anyone is interested in taking a shot at fixing this I think we just need to remove the Line 152 in e982f66
|
A note for the community
Use Cases
I am sending log and metric events through a data diode (a network security device which allows network traffic to flow in only one direction) by using socket sink and source in UDP mode.
Attempted Solutions
To get metric events through the socket sink (which currently only allows log events) I am using Lua transforms to wrap/unwrap the events inside log events. This works fine but would not be necessary if the socket sink allowed metric events.
Lua script for wrapping on the sender side:
Lua script for unwrapping on the receiver side:
source_type
attribute is used for routing only.Proposal
Allow the socket sink to accept metric events.
References
No response
Version
vector 0.39.0 (x86_64-unknown-linux-gnu 73da9bb 2024-06-17 16:00:23.791735272)
The text was updated successfully, but these errors were encountered: