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
operator: fix errors/warnings metric. #31214
operator: fix errors/warnings metric. #31214
Conversation
c7d5b03
to
745b50f
Compare
745b50f
to
b8061b4
Compare
/test |
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.
Thanks for the PR!
I've left a suggestion inline to do this in a (hopefully) simpler way and avoid the panic.
58a7df0
to
941c700
Compare
941c700
to
5c4b5ec
Compare
/test |
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, thanks!
/test |
Just to double-check - we want a backport to 1.14, but 1.15 is not affected? |
@julianwiedmann Mistake on my part, both are affected |
|
operator: fix errors/warnings metric.
This was broken during transition of pkg/metrics to integrate with Hive where relevant operator metrics where never initialized.
This adds a init func specific for operator and cleans up the "flush" logic used as a work around for errors/warnings emitted prior to agent starting (in the case of the operator).