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
metrics: Do not rely on global HTTP server #11071
metrics: Do not rely on global HTTP server #11071
Conversation
test-me-please |
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.
it is odd indeed why it does fail with the official golang library.
The global |
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
test-me-please |
This moves away from the global Golang HTTP server for serving the metrics for both Hubble and Cilium. Instead, a local instance is created, which allows the two metrics server to run concurrently. Fixes: #11066 Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
a15fb54
to
07805df
Compare
test-me-please |
This moves away from the global Golang HTTP server for serving the metrics for both Hubble and Cilium. Instead, a local instance is created, which allows the two metrics server to run concurrently.
Going forward, there also needs to be a discussion if we really want to have two different metrics server running inside cilium-agent. We either might want to move it out to
hubble-relay
(formerlyhubble-proxy
) or integrate the Hubble metrics with the Cilium ones.This PR simply sidesteps that discussion by fixing the referenced bug in the simplest way possible.
Fixes: #11066