Allow file sink to accept metric events #21704
Labels
sink: file
Anything `file` sink related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
I am attempting to save metrics to disk using the
native_json
codec usinghttp_server
source & thefile
sink, but it appears to only support logs - see belowvector/src/sinks/file/mod.rs
Line 197 in a8e82dd
Attempted Solutions
Similar to the workaround mentioned in #20756, I was able to work around this by using the
metric_to_log
transform to save metrics to disk, and then applied the inverselog_to_metric
transform downstream.Proposal
Allow the file sink to accept metric events
References
Version
vector 0.42.0 (aarch64-unknown-linux-gnu 3d16e34 2024-10-21 14:10:14.375255220)
The text was updated successfully, but these errors were encountered: