You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metricbeat doesn't include object labels and annotations on Kubernetes metricsets. As of today It's possible to enrich pod, container, state_pod and state_container events using add_kubernetes_metadata, but it would be nice to automatically add these fields to all object kinds, without the processor.
We should implement a metadata retrieval mechanism (or watcher) for all object kinds, and use a configuration similar to add_kubernetes_metadata to whitelist labels and annotations.
As a result, all kubernetes metricsets should include kubernetes.labels and kubernetes.annotations if the user wants them.
The text was updated successfully, but these errors were encountered:
This PR adds automatically enriching of `kubernetes` module metricsets. It will behave as `add_kubernetes_metadata`, but enrich all events coming out of this module by default. This will not only add labels annotations to Pods but any other Resource, like nodes, containers, deployments...
It will be on by default, some configurations are allowed:
```
- module: kubernetes
metricsets:
- pod
- node
...
in_cluster: false
kube_config: /home/exekias/.kube/config
host: minikube
include_labels:
- tier
include_annotations:
- ...
```
Closes#7148
Metricbeat doesn't include object labels and annotations on Kubernetes metricsets. As of today It's possible to enrich
pod
,container
,state_pod
andstate_container
events usingadd_kubernetes_metadata
, but it would be nice to automatically add these fields to all object kinds, without the processor.We should implement a metadata retrieval mechanism (or watcher) for all object kinds, and use a configuration similar to
add_kubernetes_metadata
to whitelist labels and annotations.As a result, all kubernetes metricsets should include
kubernetes.labels
andkubernetes.annotations
if the user wants them.The text was updated successfully, but these errors were encountered: