[processor/k8sattributes] Allow to extract metadata from other namespaces #36670
Labels
enhancement
New feature or request
processor/k8sattributes
k8s Attributes processor
waiting for author
Component(s)
processor/k8sattributes
Is your feature request related to a problem? Please describe.
We have a notion of tenant. The tenant name is a label attached to a namespace.
Like this:
We use this to set tenant using a
transform
:But this is not enough because we have some logs where the tenant should be extracted from a namespace which is not the pod namespace. For example we have ingress-nginx logs in the ingress-nginx namespace where the ingress namespace is found.
Here is what we tried:
Describe the solution you'd like
Currently k8sattributes does several things:
I want only step 6, extracting attributes for a namespace that is not necessarily a pod namespace.
Describe alternatives you've considered
Injecting into
k8s.namespace.name
and reverting after. This is hackish and I couln't get it to work.Additional context
No response
The text was updated successfully, but these errors were encountered: