Content-Length: 283421 | pFad | https://github.com/kubernetes/kubernetes/issues/89685

33 kube-apiserver and kube-scheduler doesn't expose kubernetes_build_info on /metrics · Issue #89685 · kubernetes/kubernetes · GitHub
Skip to content

kube-apiserver and kube-scheduler doesn't expose kubernetes_build_info on /metrics #89685

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

Closed
yrwal opened this issue Mar 31, 2020 · 6 comments
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation.

Comments

@yrwal
Copy link

yrwal commented Mar 31, 2020

What happened:
After I updated from version 1.16.8 to 1.18.0, the kube-apiserver and kube-scheduler doesn't expose kubernetes_build_info on /metrics any more.

What you expected to happen:
The kube-apiserver and kube-scheduler should expose this metric.

How to reproduce it (as minimally and precisely as possible):
kube-apiserver
$ curl -s -k --cert ./client.crt --key ./client.key https://127.0.0.1:6443/metrics | grep '^kubernetes_build_info'

kube-scheduler
$ curl -s http://127.0.0.1:10251/metrics | grep '^kubernetes_build_info'

Anything else we need to know?:
In version 1.18.0, only the kube-controller-manager will expose this metric.
$ curl -s http://127.0.0.1:10252/metrics | grep '^kubernetes_build_info'
kubernetes_build_info{buildDate="2020-03-25T14:50:46Z",compiler="gc",gitCommit="9e991415386e4cf155a24b1da15becaa390438d8",gitTreeState="clean",gitVersion="v1.18.0",goVersion="go1.13.8",major="1",minor="18",platform="linux/amd64"} 1

In version 1.16.8, the kube-apiserver, kube-scheduler and kube-controller-manager will all expose this metric.
$ curl -s -k --cert ./client.crt --key ./client.key https://127.0.0.1:6443/metrics | grep '^kubernetes_build_info'
kubernetes_build_info{buildDate="2020-03-12T20:52:22Z",compiler="gc",gitCommit="ec6eb119b81be488b030e849b9e64fda4caaf33c",gitTreeState="clean",gitVersion="v1.16.8",goVersion="go1.13.8",major="1",minor="16",platform="linux/amd64"} 1

$ curl -s http://127.0.0.1:10251/metrics | grep '^kubernetes_build_info'
kubernetes_build_info{buildDate="2020-03-12T20:52:22Z",compiler="gc",gitCommit="ec6eb119b81be488b030e849b9e64fda4caaf33c",gitTreeState="clean",gitVersion="v1.16.8",goVersion="go1.13.8",major="1",minor="16",platform="linux/amd64"} 1

$ curl -s http://127.0.0.1:10252/metrics | grep '^kubernetes_build_info'
kubernetes_build_info{buildDate="2020-03-12T20:52:22Z",compiler="gc",gitCommit="ec6eb119b81be488b030e849b9e64fda4caaf33c",gitTreeState="clean",gitVersion="v1.16.8",goVersion="go1.13.8",major="1",minor="16",platform="linux/amd64"} 1

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}

  • Cloud provider or hardware configuration:

  • OS (e.g: cat /etc/os-release): CentOS Linux release 7.7.1908 (Core)

  • Kernel (e.g. uname -a): Linux 3.10.0-1062.9.1.el7.x86_64 Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

  • Install tools: curl

  • Network plugin and version (if this is a network-related bug):

  • Others:

@yrwal yrwal added the kind/bug Categorizes issue or PR as related to a bug. label Mar 31, 2020
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 31, 2020
@yrwal
Copy link
Author

yrwal commented Mar 31, 2020

/sig instrumentation

@k8s-ci-robot k8s-ci-robot added sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 31, 2020
@zhouya0
Copy link
Contributor

zhouya0 commented Apr 1, 2020

/assign

@zhouya0
Copy link
Contributor

zhouya0 commented Apr 2, 2020

@yrwal I submit this PR to fix this #89724, but I think it's not easy to get merged.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 1, 2020
@zhouya0
Copy link
Contributor

zhouya0 commented Jul 1, 2020

/close

@k8s-ci-robot
Copy link
Contributor

@zhouya0: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation.
Projects
None yet
Development

No branches or pull requests

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/kubernetes/kubernetes/issues/89685

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy