Skip to content

Process events that get updated #1

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

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Process events that get updated #1

merged 1 commit into from
Apr 29, 2024

Conversation

ronaknnathani
Copy link
Collaborator

Summary

When identical events are emitted for a resource, kube-apiserver updates the previous event and increments the count field to represent how many times an event occurred. This is to optimize storage on ETCD. Such consolidation results in an update on the event.

Currently, the events exporter doesn't process any events that get updated so when similar events re-occur, they aren't processed. This change enables processing events that get updated.

Details

This PR is porting the fix mentioned here: resmoio#168.
Thanks to @Teng-Jiao-Chen for identifying the issue and the fix.

Tests

Tested as mentioned here: resmoio#168

When identical events are emitted for a resource, kube-apiserver updates the previous
event and increments the count field to represent how many times an event occurred. This
is to optimize storage on ETCD. Such consolidation results in an `update` on the event.

Currently, the events exporter doesn't process any events that get updated so when similar
events re-occur, they aren't processed. This change enables processing events that get updated.
Copy link
Collaborator

@dlessa-li dlessa-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing the changes into our repo!

@dlessa-li dlessa-li merged commit c879f1b into master Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants