vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.42k stars 1.51k forks source link

Vector src/config/validation.rs id depended on heim which is not available on FreeBSD #20852

Open samm-git opened 1 month ago

samm-git commented 1 month ago

A note for the community

Problem

I was trying to compile vector on FreeBSD (my intention is to add FreeBSD port to the ports tree). I found that hosts_metric is depended on heim, so i disabled that plugin by providing FEATURES=api,api-client,sources-datadog_agent,sources-fluent,sources-internal_metrics,sources-kubernetes_logs,sources-logstash,sources-splunk_hec,sources-statsd,sources-syslog,sources-vector,sinks-console,sinks-prometheus,sinks-vector. However, it was not enough, src/config/validation.rs using heim::disk too.

Is it possible to remove heim dependency from the core components? Vector is a great tool, and having strong dependency on non-cross platform library is problematic.

Configuration

No response

Version

0.39.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

jszwedko commented 1 month ago

Thanks for opening this @samm-git . Good catch. I think we could rely on sysinfo there which does work on FreeBSD. We'd be open to seeing a PR if you or someone else feels motivated.

jszwedko commented 1 month ago

Related: