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

Add support for FreeBSD #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lapo-luchini
Copy link

What ⁉️

Small changes to add ability to build on FreeBSD.

Why ⁉️

To use it on FreeBSD. 😇

How ⁉️

I don't know no Go, so I just added a keyword in a file and got lucky.

How to review and test 📱

I think changes are small and straightforward enough not to need specific review, but YMMV.

I just tested it on FreeBSD/amd64:

$ .build/freebsd-amd64/beat-exporter
{"level":"info","message":"Exploring target for beat type","time":"2023-10-12T14:57:30+02:00"}
{"beat":"filebeat","hostname":"c2s.dev.andxor.it","level":"info","message":"Target beat configuration loaded successfully!","name":"c2s.dev.andxor.it","time":"2023-10-12T14:57:31+02:00","uuid":"1b280254-5562-4ce6-86db-900f6158d590","version":"7.17.11"}
$ % xh http://localhost:9479/metrics | fgrep filebeat_runtime_goroutines
# HELP filebeat_runtime_goroutines beat.runtime.goroutines
# TYPE filebeat_runtime_goroutines gauge
filebeat_runtime_goroutines 31

(another option would have been to use `#! /usr/bin/env bash` I guess)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant