-
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
Cherry-pick #7573 to 6.3: Ensure metadata updates don't replace existing pod metrics #7609
Conversation
) * Ensure metadata updates don't replace existing pod metrics Before things change, `add_kubernetes_metadata` would replace everything under `kubernetes.pod` when enriching events. This is not what you want, especially if you are using it in conjunction with the Kubernetes module, where you could smash pod metrics when enriching. * Update CHANGELOG.asciidoc (cherry picked from commit 3297924)
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package add_kubernetes_metadata |
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.
don't use an underscore in package name
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package add_kubernetes_metadata |
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.
don't use an underscore in package name
Tests are failing because |
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.
LGTM
…e existing pod metrics (elastic#7609) Ensure metadata updates don't replace existing pod metrics Before things change, `add_kubernetes_metadata` would replace everything under `kubernetes.pod` when enriching events. This is not what you want, especially if you are using it in conjunction with the Kubernetes module, where you could smash pod metrics when enriching.
Cherry-pick of PR #7573 to 6.3 branch. Original message:
Before things change,
add_kubernetes_metadata
would replace everythingunder
kubernetes.pod
when enriching events.This is not what you want, especially if you are using it in conjunction
with the Kubernetes module, where you could smash pod metrics when
enriching.