Redis sink should support event variants based on the encoding type instead of only logs #22909
Labels
meta: good first issue
Anything that is good for new contributors.
sink: redis
Anything `redis` sink related
type: feature
A value-adding code addition that introduce new functionality.
Uh oh!
There was an error while loading. Please reload this page.
A note for the community
Use Cases
The redis sink could be leveraged to create a lightweight cache of metric values. All the existing redis tooling and libraries would come with this cache scheme as long as the encoding is standard.
Attempted Solutions
An error will be logged on vector boot if you have configured the redis sink to consume from a metrics source.
The redis sink config only allows for log data types today.
Proposal
The sink should work for event variants based on the sink's encoding type. The encoding framework provides for this with the input_type method. That method is even being called in the redis config. It is being overridden to only support logs. This same issue existed for the file sink and was resolved with the aforementioned proposal.
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: