Since v0.6.4 of elastic-agent-autodiscover is merged (see PR), this means that 2nd level ancestor of pods when they are created from deployments or cronjobs is no more created by default.
The flow is:
Deployment -> Replicaset > pod
Cronjob -> Job > pod
So although job and replicaset name is enriched in pods, the deployment and cronjob no more.
Since v0.6.4 of elastic-agent-autodiscover is merged (see PR), this means that 2nd level ancestor of pods when they are created from deployments or cronjobs is no more created by default.
The flow is:
Deployment -> Replicaset > pod
Cronjob -> Job > pod
So although job and replicaset name is enriched in pods, the deployment and cronjob no more.
Enhance code and see if you can strip suffixes from replicasets and jobs and create the deployment/cronjob name
Investigate https://www.elastic.co/guide/en/fleet/8.10/data-streams-pipeline-tutorial.html
Relates #[Kubernetes Module] Add missing metrics for replicaset and pod owners beats#36746