Skip to content

Cherry-pick #10081 to 6.5: Fix Pod UID automatic enriching#10102

Merged
exekias merged 1 commit intoelastic:6.5from
exekias:backport_10081_6.5
Jan 22, 2019
Merged

Cherry-pick #10081 to 6.5: Fix Pod UID automatic enriching#10102
exekias merged 1 commit intoelastic:6.5from
exekias:backport_10081_6.5

Conversation

@exekias
Copy link
Copy Markdown
Contributor

@exekias exekias commented Jan 16, 2019

Cherry-pick of PR #10081 to 6.5 branch. Original message:

Before this change, Kubernetes Pod events where not being enriched correctly and Pod UID was missing, what caused wrong visualizations in Infrastructure UI.

Metadata was being added at the module level, which is correct
for all metricsets, except pod and state_pod. For these metricsets
metadata must be added at the root level because we are already under
kubernetes.pod. Added metadata was being ignored.

This change takes this special case into account and updates events in
the right place, ensuring the events get the metadata correctly.

Before this change, missing UID caused this:

image

After this change visualizations are correct:

image

* Fix Pod UID automatic enriching

Kubernetes Pod events where not being enriched correctly. Before this
change, metadata was being added at the module level, which is correct
for all metricsets, except `pod` and `state_pod`. For these metricsets
metadata must be added at the root level because we are already under
`kubernetes.pod`. Existing metadata was being ignored.

This change takes this special case into account and updates events in
the right place, ensuring the events get the metadata correctly.

(cherry picked from commit c60282a)
@ruflin ruflin requested a review from jsoriano January 16, 2019 12:24
@exekias exekias requested a review from a team January 22, 2019 13:45
@exekias exekias merged commit 897645b into elastic:6.5 Jan 22, 2019
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
* Fix Pod UID automatic enriching

Kubernetes Pod events where not being enriched correctly. Before this
change, metadata was being added at the module level, which is correct
for all metricsets, except `pod` and `state_pod`. For these metricsets
metadata must be added at the root level because we are already under
`kubernetes.pod`. Existing metadata was being ignored.

This change takes this special case into account and updates events in
the right place, ensuring the events get the metadata correctly.

(cherry picked from commit 0ede7e7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants