-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Freebsd ARM support #5282
Comments
I’ll take a crack at it this week; I’m running a FreeBSD 11.2-p8 build environment on an ARM box, as well as a dev PFsense instance on ARM. If successful, I’ll likely still submit my work to the upstream FreeBSD Ports tree for approval/inclusion as well. Thanks for the mention, @danielnelson! |
With FreeBSD, you're able to build ARM packages on x86. From a random guy on the internet, it seems like an environment variable you set prior to building. YMMV. I'd do this, but I don't have freebsd setup directly. At one point, pfsense did support telegraf, but Golang wouldn't compile anymore. That doesn't seem to be a problem now. https://github.com/golang/go/wiki/GoArm |
I tried doing a quick build, but it's failing at the Both cross-compiling, and compiling directly on an armv7 FreeBSD machine, fail when building Since telegraf depends on armv7 FreeBSD
|
Here is an issue on the gopsutil issue tracker: shirou/gopsutil#627 |
Awesome I’ll try the trick referenced in the issue! |
OK I got it built and working on arm6 and arm7 FreeBSD-11.2-p8. Note that I used/built Telegraf v1.9.0, which is the current version in the official FreeBSD Ports tree (for now). As @danielnelson mentioned, The port build Makefile has been tweaked to address shirou/gopsutil#627 Test Port tree if one wants to build the port: https://github.com/W0CHP/FreeBSD-ARM/tree/master/net-mgmt/telegraf FreeBSD-armv7 binary package* for folks that can't/won't build: Here's a screenshot of data being collected on a Telegraf-1.9.0 instance on FreeBSD-11.2 armv7: *Test package; use at your own risk. |
Quick turn around @W0CHP! Thanks for the inital work. I'll get this tested shortly on pfsense to make sure its happy too. At least this is a start. |
Cool @W0CHP ! If you send me the patch for the telegraf port, I can commit the fix. Either here, directly to me or as a bugzilla PR. |
@W0CHP for the record, your build is working on my Netgate SG3100 running PFSense 2.4.4-p2. |
@girgen It looks like you already merged my patches and committed(?) :-) Thanks! |
@danielnelson FYI all of these changes have been merged and committed upstream to the FreeBSD Ports tree (thanks @girgen!). |
Yeah, I think I found all changes (the patch file, adding ARCH and the two |
With the code moving to the freebsd tree, should I close this? |
You nailed it, @girgen! And I tested on two ARM installs from the updated ports tree. Works great.
@SomKen I think closing this is appropriate. Thanks for issuing the FR; and thanks again @girgen for the commit. :-) |
Thanks again! |
Let's leave this open until fixed in gopsutil. |
I think both the patch and the copies of files should propagate upstreams from the port, i.e. it should be committed here and in the gopsutil trees. I guess a pull request is preferred? @W0CHP should get the glory for fixing it. :) |
We don't vendor, so it would only go upstream, here is the link again to the upstream issue: shirou/gopsutil#627. |
I believe this was addressed by shirou/gopsutil#632 |
@W0CHP You around? Can you share me the repo you had for building this. Netgate still hasn't released Telegraf after two years.... |
I'm around! I've moved the repo here: I have not maintained it in two years due to time constraints. Hope that helps. |
Got it! Thanks. It's insane this never got solved, but I think you did all the heavy lifting needed. I owe you a beer. |
Go cross compiles.... buahahahah |
https://docs.influxdata.com/telegraf/v1.18/about_the_project/release-notes-changelog/ "Add FreeBSD ARMv7 build." Front and center... |
Feature Request
Any chance of a Freebsd arm build for Telegraf? With Netgate starting to release more ARM based PFSense devices, telegraf is the last feature I need to fully switch off x86.
I know the Freebsd ports tree is normally pretty good, but there's currently no support for telegraf on ARM. As telegraf is more than happy to run on Freebsd and Linux ARM, it seems like there's a build we're just missing.
Maybe this would be better to contact the maintainer of the telegraf builds on freebsd, but I'd trust influx more.
Proposal:
Currently, pfsense, and mainly freebsd, are missing a telegraf package on ARMv7.
Current behavior:
No freebsd ARM package.
Desired behavior:
A freebsd ARM package.
Use case: [Why is this important (helps with prioritizing requests)]
PFSense on ARM
The text was updated successfully, but these errors were encountered: