-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Pod UID is always present in pod
metricset
#12345
Conversation
Pod UID field is currently retrieved as part of the metadata enrichment present for all Kubernetes module metricsets. In case of errors or missconfiguration, pod UID won't be present in resulting documents. Since this field is available in the `pod` metricset, this change adds it to Pod events, avoiding issues when enrichment fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to update metricbeat/module/kubernetes/pod/_meta/data.json
as well?
Forgive me if I'm a little behind on the k8s metricsets, is there a reason |
This is a good point, happy to explain:
This is mostly defensive code, as this module was already reporting this field through add_metadata enrichment, that's why current
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know! Thanks for answering. Besides the merge conflict, it looks good.
Pod UID field is currently retrieved as part of the metadata enrichment present for all Kubernetes module metricsets. In case of errors or missconfiguration, pod UID won't be present in resulting documents. Since this field is available in the `pod` metricset, this change adds it to Pod events, avoiding issues when enrichment fails.
Pod UID field is currently retrieved as part of the metadata enrichment
present for all Kubernetes module metricsets. In case of errors or
missconfiguration, pod UID won't be present in resulting documents.
Since this field is available in the
pod
metricset, this change addsit to Pod events, avoiding issues when enrichment fails.