Kubernetes Source: Add namespace annotations to event metadata #21409
matt-simons
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://vector.dev/docs/reference/configuration/sources/kubernetes_logs/#namespace_annotation_fields
TLDR: please add
namespace_annotation_fields.namespace_annotations
because labels are restricted to 63 characters which makes it hard to store much data for VRL transformations for example.We currently give users of our platform a lot of flexibility to configure their observability pipelines via namespace labels however we need to add a new label for every bit of config and in VRL individually parse and handle each one which is a bit onerous.
We would like to move from this
to this
So we can simply parse the whole config one time. It also makes it more extensible in the future.
We could do this today for pod annotations as they are added to the event metadata however we typically keep the application
Deployments
the same across environments and depending where it is deployed (e.g. in a performance testing namespace, prod namespace, dev namespace) we want different log forward configurations. Namespace annotations would be greatly preferred if possible.Thanks for considering, I hope this is an easy change to implement, I would love to contribute however I don't know Rust unfortunately. 😅
Beta Was this translation helpful? Give feedback.
All reactions