Skip to content

agent: Remove service monitor notifications #39493

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

Conversation

joamaki
Copy link
Contributor

@joamaki joamaki commented May 12, 2025

The service monitor notifications were shown as part of cilium-dbg monitor and emitted towards Hubble. Hubble never used this functionality and there were incidents due to the extra memory used for storing the service notifications in the Hubble ring buffer (#36391, #36394). With the new load-balancing implementation we can replace the service notifications in cilium-dbg monitor with cilium-dbg shell -- db/watch frontends which not only gives more information, but avoids the cost of converting to the service notification and storing it in the monitor ring buffer.

Thus, this PR marks the service notifications in the Hubble protobufs as deprecated and deletes the notifications from the monitor API along with their use in the code.

The service upsert and delete notifications are no longer shown as part of "cilium-dbg monitor". Instead the changes to service frontends can be monitored for debugging purposes with "cilium-dbg shell -- db/watch frontends".

@joamaki joamaki requested a review from gandro May 12, 2025 09:56
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 12, 2025
@github-actions github-actions bot added the hubble-cli PRs or GitHub issues related with hubble-cli label May 12, 2025
@joamaki joamaki added release-note/minor This PR changes functionality that users may find relevant to operating Cilium. and removed hubble-cli PRs or GitHub issues related with hubble-cli labels May 12, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label May 12, 2025
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Hubble and monitor LGTM!

@joamaki
Copy link
Contributor Author

joamaki commented May 12, 2025

/test

joamaki added 4 commits May 12, 2025 12:59
The service notifications are being removed so mark them as deprecated
in the protobuf.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
The service notifications were not used by Hubble and they are
now being removed from the monitor agent.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
The service monitor notifications are being removed so drop the use
of them from the legacy code.

Signed-off-by: Jussi Maki <jussi@isovalent.com>
Signed-off-by: Jussi Maki <jussi@isovalent.com>
@joamaki joamaki force-pushed the pr/joamaki/monitor-remove-service-notifications branch from 4679db8 to 83e8fee Compare May 12, 2025 11:00
Copy link
Member

@kaworu kaworu left a comment

Choose a reason for hiding this comment

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

Hubble and monitor LGTM!

👍 Thanks!

@joamaki joamaki marked this pull request as ready for review May 14, 2025 13:19
@joamaki joamaki requested review from a team as code owners May 14, 2025 13:19
@joamaki
Copy link
Contributor Author

joamaki commented May 14, 2025

/test

Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

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

🚢

@joamaki joamaki removed the request for review from aditighag May 15, 2025 12:04
@joamaki joamaki enabled auto-merge May 19, 2025 08:23
@joamaki joamaki added this pull request to the merge queue May 20, 2025
Merged via the queue into cilium:main with commit 231e012 May 20, 2025
86 checks passed
@joamaki joamaki deleted the pr/joamaki/monitor-remove-service-notifications branch May 20, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants