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

failed to install metrics #759

Closed
2 of 5 tasks
baichinger opened this issue Aug 8, 2023 · 2 comments
Closed
2 of 5 tasks

failed to install metrics #759

baichinger opened this issue Aug 8, 2023 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@baichinger
Copy link

How to use it?

  • kwok
  • kwokctl --runtime=docker (default runtime)
  • kwokctl --runtime=binary
  • kwokctl --runtime=nerdctl
  • kwokctl --runtime=kind

What happened?

Tried to explore kubelet metrics (introduced in #199) with an in-cluster deployment. Tried with the provide test script ./test/kwokctl/kwokctl_metric_test.sh as well which resulted in the same error message:

{"time":"2023-08-08T11:57:31.228654753Z","level":"INFO","source":{"function":"sigs.k8s.io/kwok/pkg/kwok/cmd.runE","file":"/workspace/pkg/kwok/cmd/root.go","line":130},"msg":"Watch all nodes"}
{"time":"2023-08-08T11:57:31.988402793Z","level":"ERROR","source":{"function":"main.main","file":"/workspace/cmd/kwok/main.go","line":50},"msg":"Execute exit","err":"failed to install metrics: failed to create metrics update handler: failed to initialize metrics update handl
er: failed to compile metric \"fake-node\": failed to compile metric expression: ERROR: :1:23: undeclared reference to 'StartedContainersTotal' (in container '')\n | StartedContainersTotal( node.metadata.name )\n | ......................^"}

What did you expect to happen?

  • Metric is registered successfully.
  • Metric can be scraped.

How can we reproduce it (as minimally and precisely as possible)?

./test/kwokctl/kwokctl_metric_test.sh v1.27.4

Anything else we need to know?

No response

Kwok version

$ kwok --version
kwok version v0.3.0 go1.20.5 (linux/amd64)

$ kwokctl --version
kwokctl version v0.3.0 go1.20.5 (linux/amd64)

OS version

$ cat /etc/os-release

Arch Linux
@baichinger baichinger added the kind/bug Categorizes issue or PR as related to a bug. label Aug 8, 2023
@wzshiming
Copy link
Member

This requires building kwok and kwokctl based on the latest branch, or switching to the 0.3 branch

@baichinger
Copy link
Author

Great. Thanks!

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.
Projects
None yet
Development

No branches or pull requests

2 participants