-
Notifications
You must be signed in to change notification settings - Fork 488
No grafana-agent for armhf? #364
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
Comments
I am going to close this but hoping that first someone answers why I had to use the "Other Distribution" method and manually change the amd64 to armv7 and then continue the other steps manually... I just wonder why the install script doesn't retrieve the appropriate binary depending the arch of the user's device.. |
Hey there, you're right, the install script just assumes amd64 at the moment. We're planning on fixing this, but have been discussing how to handle it (e.g., detect automatically or show an architecture selection for users to pick themselves). Sorry for the confusion! |
I can cook up a quick user selection prompt when the script is executed and based on that selection to pull the right package version.. should I give it a try? I think something is better than nothing and can be tweaked later on. Let me know if you think I should go for it and put it as a PR. |
Feel free to contribute! Though for now, I think I'd prefer the selection be done via an environment variable/command line flag, similarly to what we do in this script for setting the Kubernetes namespace. |
Got it, yeah I already tested using variables and works, and we can pass the flag to the case argument in a nested form because since you already have which type of system rpm or deb, if its deb then which arch of deb and then based on that it directs to the package. |
Ok, so far I've managed to do something like this as an example for when its armv7:
But then I am getting stuck in the part where I have to manually create the grafana-agent.service with systemd, etc, and even then, the service just says:
But the grafana-agent.yaml file is empty.. |
The config file is generated by running |
FYI, we're going to have platform-specific deb/rpm packages in v0.12.0 (changelog), which is due near the end of next week |
So I should basically just leave it alone until v0.12.0 😄 ? |
Ha, probably, it would make adding in architecture selection a lot easier :) |
Gotcha. |
Btw, after incorporating the agentctl to retrieve the config file, everything worked as expected, in other words, my install script checked the architecture, if the system was deb it then checked which deb arch, then it found it was ARMv7, then downloaded both binaries the grafana-agent and the agentctl belonging to armv7, then setup the grafana-agent.service by doing that cat <<EOF command, and then everything worked.. is this basically what the platform specific deb package in 0.12.0 will be doing? just wondering. |
You can check out #344 for the PR that added more platform packages. They're the same as the existing packages but with architecture-appropriate builds of the binaries. The install script still doesn't allow for any architecture selection as of the development branch, though, and still assumes the x86_64 (renamed amd64 in 0.12.0) package. |
Got it, I see the commits for armv7 being part of the package build.. I'll test the installer out when released and give feedback if I see anything not working or any errors. 👍🏻 |
Sorry but even though the manual installation and all worked, I just have one minor issue with the grafana-agent.service when manually creating it, it seems like any time I add a
service file and agent are owned by root:
this is the contents of grafana-agent.service:
the user exists:
|
(FYI I'd recommend reaching out to Grafana Cloud Support for issues with Grafana Cloud. While I'm happy to help, Grafana's Support team goes way beyond just me and you're more likely to get help sooner) Port 80 is the default port of the HTTP server and requires root. This shouldn't be happening, I'll create an internal ticket to get our cloud config to use a non-root port by default. In the meantime, change the server:
http_listen_port: 8080 # or whatever works for you |
Oh, actually, the cloud config listens on 12345 by default. Did you change that? |
Nope, I was just doing this whole customized About contacting grafana cloud support, it really isn't a big deal, i was just trying to fix the grafanacloud-install.sh script and seeing if a finalized version would have been good to contribute until 0.12.0 was released, but also for learning purposes. |
I'm mentioning this. The lack of any information on a armv7 build is asinine. I'm trying to install the agent on a Pi which everywhere I can find says it supports, only to see no reference in either Debian based, or other Linux distribution There's nothing in the script that points to anything but 64bit architecture and I can't find any information on it's discontinuation. If it is possible to install this on a Pi 3. no information exists on it. I can't find even a manual package to install manually. |
We don't support 32-bit platforms due to a Go compiler bug. golang/go#58425 This won't change unless the bug gets fixed. |
That linked issue is now marked as done, does that mean this should be re-opened? I'm not sure what the process is. |
There should usually be a new issue created; it's too easy for maintainers to miss comments on closed issues or reopened old issues. However, in this particular case, we're not sure whether it's worth adding back support for 32-bit ARM devices. We haven't heard more than a handful of requests to bring back support, and we're not confident yet that there won't be:
I'd still encourage you to open a new issue for returning 32-bit ARM support. It's not a "no" from the maintainers right now, and we're mainly waiting for demand to rise before making a final decision about what to do. |
Thank you for the thoughtful response @rfratto |
Sorry if this was addressed before but before posting I searched around and did not find any concrete answer, also in the packages I only see the binary and not the deb package so that the cloud agent can be automatically installed and registered to my grafana account with the corresponding cloud API key etc.. it gives the error that the deb package is for amd64 arch only and I'm testing running it on a Raspberry Pi 3 which is running Raspian buster on arch armv7..
Any help is appreciated, thanks.
The text was updated successfully, but these errors were encountered: