-
Notifications
You must be signed in to change notification settings - Fork 43
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
The metrics container (prometheus_wireguard_exporter) fails to run on arm64 #127
Comments
Thanks @codestation. I'll try to look into this. I'm fine with removing those metrics. I'm not aware or anyone using them. The other alternative that I would prefer is to implement those metrics in the agent. so rewriting them in golang. This shouldn't be that much work. I'm doing a language course along side working my job. So I cannot promise this will land soon. I'm also open for PRs with whatever soloution you choose from the suggestions you proposed. Thanks, |
I would be using those metrics once i finish my grafana setup so please keep it, maybe add some option to disable it per wireguard server. The reimplementation in Go sounds a good idea, as i cannot read rust code at all. I pushed a simple PR with a image change. The image gets a little bigger but the controller now starts correctly (i currently have 2 days of uptime on my ARM Ampere instance). |
Thanks @codestation for fixing this. PR is merged and the functionality is available in the latest release. Please close the issue if the problem is now resolved |
Thank you, just updated and everything is running fine with the latest agent image. |
Describe the bug
The metrics container currently fails on arm64 so the pod cannot start.
The container log shows the following:
And passing the required env variable to the pod:
I also tried to compile the binary in debug mode and failed on this crate:
https://github.com/clap-rs/clap/blob/f8e9211e38d19f060980a6cb10f3fc8a2735c5b2/src/builder/command.rs#L548
To Reproduce
Steps to reproduce the behavior:
kubectl apply -f https://github.com/jodevsa/wireguard-operator/releases/download/v2.0.17/release.yaml
Expected behavior
The metrics container should start.
Additional context
I also ran the container on docker with the same result
If i copy the
prometheus_wireguard_exporter
from the container to the host (Ubuntu 22.04 LTS) and run it, then it executes without errors, so the problem is with the alpine image. I also switched the final image from alpine:3.18 to debian:bookworm and it ran without errors.Possible fixes:
The text was updated successfully, but these errors were encountered: