Skip to content

Add metric exposing build version&revision#4995

Closed
nicoche wants to merge 1 commit intocontainerd:mainfrom
nicoche:add-metric-exposing-version
Closed

Add metric exposing build version&revision#4995
nicoche wants to merge 1 commit intocontainerd:mainfrom
nicoche:add-metric-exposing-version

Conversation

@nicoche
Copy link
Copy Markdown
Contributor

@nicoche nicoche commented Feb 3, 2021

cf. #4720

@k8s-ci-robot
Copy link
Copy Markdown

Hi @nicoche. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from c1cfee8 to f3b28a7 Compare February 3, 2021 23:33
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Feb 3, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch 4 times, most recently from d6e01b4 to ce94af8 Compare February 4, 2021 00:08
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Feb 4, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from ce94af8 to 9db8862 Compare February 6, 2021 19:11
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Feb 6, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 9db8862 to 9c3c94a Compare March 2, 2021 08:53
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 2, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 9c3c94a to 4849d53 Compare March 2, 2021 22:53
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 2, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 4849d53 to f49ae53 Compare March 2, 2021 23:05
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 2, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from f49ae53 to 6af2ebd Compare March 2, 2021 23:32
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 2, 2021

Build succeeded.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 6af2ebd to 1df428b Compare March 3, 2021 08:51
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 3, 2021

Build succeeded.

@nicoche nicoche marked this pull request as ready for review March 3, 2021 20:20
@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Mar 3, 2021

If I'm not mistaken, this looks like the expected behavior:

$cat /etc/containerd/config.toml | grep -A 2 metrics
[metrics]
  address = "127.0.0.1:4242"
  grpc_histogram = false
$ curl localhost:4242/v1/metrics 2>1 | grep build_info
# HELP containerd_build_info_total Build information on containerd
# TYPE containerd_build_info_total counter
containerd_build_info_total{revision="1df428b2ff31749bf5309f1544e1f0bb552866e3",version="v1.5.0-beta.2-13-g1df428b2f"} 1

If a test doing just that is needed please let me know. I'll gladly add it

@acpana
Copy link
Copy Markdown

acpana commented Mar 17, 2021

(not a containerd reviewer or maintainer)

If a test doing just that is needed please let me know. I'll gladly add it

If there's a way to add either e2e or unit testing w the CR, that's generally a plus!


It may also help engaging on the issue to clarify an API path. For instance, would we want to expose this info at /about ?

@dmcgowan dmcgowan marked this pull request as draft May 27, 2021 04:06
@dmcgowan dmcgowan changed the title WIP: Add metric exposing build version&revision Add metric exposing build version&revision May 27, 2021
@kzys
Copy link
Copy Markdown
Member

kzys commented Jun 1, 2021

@nicoche Looks good to me. Is it still work-in-progress? Derek has changed the title though.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 1df428b to 90bfdf1 Compare June 4, 2021 22:59
@nicoche nicoche marked this pull request as ready for review June 4, 2021 23:01
@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jun 4, 2021

@kzys I think we're good as is. I just rebased

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 4, 2021

Build succeeded.

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jun 6, 2021

Some tests failed but I don't think they are related to this PR, are they?

@kzys
Copy link
Copy Markdown
Member

kzys commented Jul 2, 2021

/ok-to-test

@nicoche Could you rebase the branch against main? This will re-run the tests.

@nicoche nicoche force-pushed the add-metric-exposing-version branch from 90bfdf1 to 581ee35 Compare July 2, 2021 22:00
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 2, 2021

Build succeeded.

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jul 3, 2021

Thanks, just did it! Still one test failing, but it could be a true positive. I'll look into that

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jul 4, 2021

Looks like this is an external issue as other PRs run into the same crash. Example here: #5676 (comment)

I'll re-run the tests in a while to see if things are better 🙂

@kzys
Copy link
Copy Markdown
Member

kzys commented Jul 12, 2021

/retest

@containerd/committers Can someone approve GitHub Actions?

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jul 13, 2021

/retest

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Jul 13, 2021

    default:     failed to pull image: rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/busybox:1.28": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/busybox/manifests/sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Looks also like a flaky one... Unfortunately I don't think I can relaunch tests myself @kzys, I'll need your help once again 🙏 Actually they are running!

And they passed 🎉

@kzys
Copy link
Copy Markdown
Member

kzys commented Sep 9, 2021

Thanks @nicoche! The change has been merged as #5965 with a slight change from @crosbymichael.

@nicoche
Copy link
Copy Markdown
Contributor Author

nicoche commented Sep 10, 2021

Looks way cleaner like this, thanks!

@nicoche nicoche deleted the add-metric-exposing-version branch September 10, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants