Skip to content
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

Expose kube-proxy prometheus metrics #4299

Open
Tracked by #5371
Cajga opened this issue Dec 6, 2022 · 2 comments
Open
Tracked by #5371

Expose kube-proxy prometheus metrics #4299

Cajga opened this issue Dec 6, 2022 · 2 comments
Assignees
Labels
area/cli Generic EKS-A CLI features kind/enhancement New feature or request priority/p1 On the list but not scheduled team/ce

Comments

@Cajga
Copy link
Contributor

Cajga commented Dec 6, 2022

What would you like to be added:
Please expose kube-proxy metrics so, they can be scraped with (ideally, also from an external) prometheus. Currently, in EKS-A, kube-proxy metrics are only available from the node itself:

# netstat -natupl|grep 10249
tcp        0      0 127.0.0.1:10249         0.0.0.0:*               LISTEN      1428/kube-proxy
# curl -L -s http://127.0.0.1:10249/metrics |grep -v ^#|head -n 5
apiserver_audit_event_total 0
apiserver_audit_requests_rejected_total 0
go_gc_cycles_automatic_gc_cycles_total 1008
go_gc_cycles_forced_gc_cycles_total 0
go_gc_cycles_total_gc_cycles_total 1008

One simple solution would be to modify the default configmap of kube-proxy and add 0.0.0.0:10249 for metricsBindAddress:

$ kubectl describe configmaps -n kube-system kube-proxy |grep -i address
bindAddress: 0.0.0.0
bindAddressHardFail: false
healthzBindAddress: ""
metricsBindAddress: ""
nodePortAddresses: null

According to the official documentation of kube-proxy config, without a value, it defaults to 127.0.0.1:10249

Why is this needed:
To be able to scrape kube-proxy metrics with prometheus which are helpful to understand the state of the cluster (and if kube-proxy is down :) ).

@panktishah26
Copy link
Member

@Cajga Thanks for creating a github issue. We will take a look into this and will keep you posted.

@Cajga
Copy link
Contributor Author

Cajga commented Dec 7, 2022

@panktishah26, thanks ahead.

Just wanted to highlight that metricsBindAddress: 0.0.0.0:10249 is the default in EKS (region) clusters. See ticket about the same discussion there.

@panktishah26 panktishah26 added kind/enhancement New feature or request team/cli area/cli Generic EKS-A CLI features labels Dec 8, 2022
@drewvanstone drewvanstone added this to the v0.16.0 milestone Mar 24, 2023
@jiayiwang7 jiayiwang7 added priority/p1 On the list but not scheduled team/ce and removed team/cli labels Mar 29, 2023
@jiayiwang7 jiayiwang7 modified the milestones: v0.16.0, v0.17.0 May 4, 2023
@drewvanstone drewvanstone modified the milestones: v0.17.0, v0.18.0 Jul 5, 2023
@ndeksa ndeksa modified the milestones: v0.18.0, next Sep 25, 2023
@jiayiwang7 jiayiwang7 removed this from the next milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Generic EKS-A CLI features kind/enhancement New feature or request priority/p1 On the list but not scheduled team/ce
Projects
None yet
Development

No branches or pull requests

5 participants