Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant