Expose Kubernetes resource namespace metadata in discovery.kubernetes
component
#1550
Labels
enhancement
New feature or request
discovery.kubernetes
component
#1550
Request
I would like to be able to use the resource namespace's label in
discovery.relabel
to filter targets discovered bydiscovery.kubernetes
.Example:
I expect the above configuration to select all Pods which from every namespace which have the label
foo=bar
set.Use case
I am aware of the
loki.source.podlogs
component which would allow to select pods using a namespace label selector, but I would like to avoid the overhead of tailing logs via the Kubernetes API server, this is because I operate a large solution with multiple cluster running over 3000 pods.The text was updated successfully, but these errors were encountered: