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

FreeBSD ARM support - Where did you go? #8922

Closed
SomKen opened this issue Mar 2, 2021 · 18 comments · Fixed by #9200
Closed

FreeBSD ARM support - Where did you go? #8922

SomKen opened this issue Mar 2, 2021 · 18 comments · Fixed by #9200
Assignees
Labels
feature request Requests for new plugin and for new features to existing plugins platform/bsd

Comments

@SomKen
Copy link
Contributor

SomKen commented Mar 2, 2021

After reviewing my older post from #5282, it seemed as if telegraf would start building freebsd arm packages. After having then installed the 1.15 version of telegraf onto my pfsense, it has survived every version of pfsense Ive upgraded it to since. So, at least in this one case, it still works, but I don't see any new builds.

@SomKen SomKen added the feature request Requests for new plugin and for new features to existing plugins label Mar 2, 2021
@rsletten
Copy link

rsletten commented Mar 2, 2021

Would like this as well.

@FreeWillyB
Copy link

Sign me up as well. I'm working on a pilot network right now. If all goes well, it would involve deploying about 13 or so of the Netgate SG-3100 across the state. I had planned on using Telegraf for metric reporting, but didn't realize the agent wasn't supported.

@strman
Copy link

strman commented Mar 24, 2021

@SomKen any chance you could share the steps you took to install telegraf 1.15?

@SomKen
Copy link
Contributor Author

SomKen commented Mar 24, 2021

https://forum.netgate.com/topic/142836/telegraf-for-arm-systems-e-g-netgate-sg-3100/65

I'm tracking my progress here. There was a guide I found for building, funny enough, ARM packages on the SG-3100 using qemu / freebsd 12.2. Testing that now.

Netgate keeps coming up with "technical" excuses, but I've had A version of telegraf running on my SG-3100 for a while now. I smell 💩

@SomKen
Copy link
Contributor Author

SomKen commented Mar 25, 2021

I just added https://forum.netgate.com/topic/142836/telegraf-for-arm-systems-e-g-netgate-sg-3100/69. I've included the then built version of telegraf. Please note this version is over 2 years old, but is still running on my SG-3100 after all the updates over the two years. I haven't had to do ANYTHING to get it working between updates. This must be the difference between PFSense and FreeBSD.... >_>

I attempted to build a new version last night, but as expected (i believe) GO failed to build after a few hours. Looking at logs, it seems to be because of a run away build, but I haven't had time to really look. I'll dig more tonight.

Please Influx, please help us here. I will send you an SG-3100 if needed. Netgate is being less than helpful here and after seeing the recent drama related to Wiregurad and their response, it makes sense.

https://www.reddit.com/r/networking/comments/m6zjie/wireguard_netgate_pfsense_drama/ and https://docs.opnsense.org/history/thefork.html if you want to cry.

@SomKen
Copy link
Contributor Author

SomKen commented Mar 27, 2021

Figured out how to build the armv7 packages for Freebsd without the need of an SG-3100, code changes, or emulation. I'll report back later, but GO is amazing.

@SomKen
Copy link
Contributor Author

SomKen commented Mar 30, 2021

GOARM=7 GOOS=freebsd GOARCH=arm go build ./cmd/telegraf

Can you please publish a telegraf for FreeBSD armv7 (and friends)? GO can cross compile, even from x86 to ARM, so building on any machine should be doable.

@SomKen
Copy link
Contributor Author

SomKen commented Apr 10, 2021

bamp?

@sjwang90 sjwang90 self-assigned this Apr 12, 2021
@sjwang90
Copy link
Contributor

Hey @SomKen, where are you looking for the FreeBSD builds? They're not on our downloads page but on our GitHub releases page: https://github.com/influxdata/telegraf/releases

@SomKen
Copy link
Contributor Author

SomKen commented Apr 12, 2021

Hey @SomKen, where are you looking for the FreeBSD builds? They're not on our downloads page but on our GitHub releases page: https://github.com/influxdata/telegraf/releases

There are no arm builds for Freebsd listed there.

@reimda
Copy link
Contributor

reimda commented Apr 12, 2021

None of the 1.15 releases included an arm FreeBSD build either. For example, see 1.15.1: https://github.com/influxdata/telegraf/releases/tag/v1.15.1

I wonder if the 1.15 build on your pfsense box is an unofficial build made by a third party.

@SomKen
Copy link
Contributor Author

SomKen commented Apr 12, 2021

https://www.youtube.com/watch?v=Cfr-tDnG5oA

You can build it from source yourself using any x86 machine. YMMV

Just confirmed the pf input is working.

[21.02-RELEASE][root@pfSense.home]/usr/local/etc: telegraf --config telegraf.conf --input-filter pf --test
2021-04-12T23:41:32Z I! Starting Telegraf
> pf,host=pfSense.home bad-offset=0i,bad-timestamp=0i,congestion=0i,entries=4362i,fragment=0i,inserts=14353314i,ip-option=18350i,match=16560139i,memory=0i,normalize=0i,proto-cksum=0i,removals=14348952i,searches=4234184361i,short=85i,src-limit=0i,state-insert=7i,state-limit=0i,state-mismatch=380i,synproxy=0i 1618270892000000000

@sjwang90
Copy link
Contributor

We don't officially support arm builds for FreeBSD. We started a PR doc #9100 to clarify the platforms and builds we do support.

@reimda
Copy link
Contributor

reimda commented Apr 19, 2021

#9100 documents the operating systems Telegraf supports, but it's more concerned with how long Telegraf is going to support older OS releases and doesn't get into which architectures are supported.

@SomKen
Copy link
Contributor Author

SomKen commented Apr 20, 2021

@sjwang90 With that page being created, what is the status of building for ARM Freebsd? As I showed above, building for Freebsd ARMv7 is doable from any x86 machine.

@reimda
Copy link
Contributor

reimda commented Apr 27, 2021

@SomKen @rsletten @FreeWillyB Could you test the FreeBSD ARM build in #9200?

CI build artifacts are automatically added as a comment to PRs and are valid for 30 days. I think this is the one from #9200 that you're looking for: https://87796-33258973-gh.circle-artifacts.com/0/build/dist/telegraf-1.19.0%7E80ba0909_freebsd_armv7.tar.gz

@SomKen
Copy link
Contributor Author

SomKen commented Apr 30, 2021

@reimda Testing it. I've added a comment to that PR.

@SomKen
Copy link
Contributor Author

SomKen commented May 3, 2021

No issues with the build at all. Just checked this morning and the processes has been running since starting / no issues to report. all expected metrics are working in Influx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins platform/bsd
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants