-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add functionality to bind custom IP address for Etcd metrics endpoint #2750
Conversation
Signed-off-by: yuriydzobak <[email protected]>
Signed-off-by: yuriydzobak <[email protected]>
Signed-off-by: yuriydzobak <[email protected]>
Signed-off-by: yuriydzobak <[email protected]>
Signed-off-by: yuriydzobak <[email protected]>
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 contribution! We'd like to take a slightly different approach to it though. Rather than specifying a bind address in a new flag, can you instead add a new boolean flag (maybe etcd-expose-metrics
) that when set will bind the metrics listener to the same address used for the peer and client listeners instead of loopback? Something like:
// metricsURL returns the metrics address for the local node
func (e *ETCD) clientURL(expose bool) string {
if expose {
return fmt.Sprintf("http://%s:2381", e.address)
}
return "http://127.0.0.1:2381"
}
Signed-off-by: yuriydzobak <[email protected]>
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.
One typo in the CLI flag, other than that looks great!
Co-authored-by: Brad Davidson <[email protected]> Signed-off-by: yuriydzobak <[email protected]>
Hi, @brandond
Maybe need to run re-test again |
The sonobuoy tests frequently fail on flakey tests, I can restart it. |
Right now one test is failed =(
Please, could you re-run the test again? |
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
Proposed Changes
k3s doesn't allow users to scrape metrics for etcd because it's bonded to localhost
Types of Changes
Added to cli flag to change bind address for etcd metrics
Verification
Linked Issues
For #2921
Further Comments