-
Notifications
You must be signed in to change notification settings - Fork 485
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
[collector] add node ip to kubeletstats #1206
Conversation
Instead of making this an option I'd be ok with switching to using Node IP in the preset instead of Node Name. I'm actually surprised we're using node name instead of node ip as I'd expect IP to be more universally usable. We've seen issues like the one linked where IP is the solution, we could just use it all the time. I don't think it would break users. @dmitryax @pavolloffay @jinja2 what do you think? |
Yeah should be okay to switch to node ip. It might be a breaking change for setups in which kubelet is not serving a certificate with the IP listed in subject alt name. Users will need to add the |
@jinja2 how common would this be? |
@TylerHelmuth Done! Latest commit removes useNodeIp and now exclusively uses K8S_NODE_IP for the kubeMetrics endpoint. |
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.
Please bump the minor version of the chart and run make generate-examples CHARTS=opentelemetry-collector
@alextricity25 looks like something with your use of the downward api is incorrect |
@alextricity25 you will need to rebase as well :). |
In some scenarios, it's desirable to use the node IP instead of the node name to gather kubelet metrics. This commit makes it possible for the user to specify the `presets.kubeletMetrics.useNodeIp` flag so that the node ip is used as an endpoint instead of the node name.
Co-authored-by: Chris Mark <chrismarkou92@gmail.com>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
In some scenarios, it's desirable to use the node IP instead of the node name to gather kubelet metrics. This commit makes it possible for the user to specify the
presets.kubeletMetrics.useNodeIp
flag so that the node ip is used as an endpoint instead of the node name.Somewhat resovles open-telemetry/opentelemetry-collector-contrib#22843