Skip to content

[metrics] Fix panic during metrics manager startup #11

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
Dec 18, 2024

Conversation

Fricounet
Copy link

This fixes a regression introduced in kubernetes-sigs#1876 where the driver would start panicking on startup if --http-endpoint was specified. This was caused by the metrics not being initialized anymore during startup. The proposed fix involves using the Reset methods of the metrics object instead of trying to redefine them each time they need to be reset.

Fix is open upstream kubernetes-sigs#1895 but let's fix it here first

This fixes a regression introduced in kubernetes-sigs#1876 where the driver would start
panicking on startup if `--http-endpoint` was specified. This was caused
by the metrics not being initialized anymore during startup. The
proposed fix involves using the `Reset` methods of the metrics object
instead of trying to redefine them each time they need to be reset.
@Fricounet Fricounet merged commit 46cb558 into datadog Dec 18, 2024
2 checks passed
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