Andrew Kroh
Andrew Kroh
The [Makefile](https://github.com/andrewkroh/go-ebpf/blob/603b4d14afc395e85468ca022d45a340599e11a1/exec/bpf/Makefile#L3) for eBPF program has a dependency on rpm to determine what kernel sources are installed. So the build won't work outside of RHEL/Fedora. You could swap out the...
I did some brief research from my phone tonight. I found that for kprobes there is a version check. https://elixir.bootlin.com/linux/v4.4/source/kernel/bpf/syscall.c#L628 I knew that bpf_probe_read isn’t necessarily portable across versions, but...
@nictuku What kernel version and Debian version were you using? I suspect it’s an issue with the LINUX_VERSION_CODE produced by https://github.com/iovisor/gobpf/blob/7ca3256049133a085a9845f5e834c950553e4044/elf/kernel_version.go#L94.
This looks like an oversight. `LoadAverage` should have been implemented for both linux and darwin providers as they both support this metric.
There no one slated to work on that merging of features from elastic-agent-system-metrics currently. So I recommend opening a PR to expedite this. Thanks.
I think it would be good to start with a table mapping out where data will be collected from for the non-CGO use case. This will give us a better...
Thanks for outlining the data sources. It looks like invoking some commands will be required in order to a complete view of the data. I can't think of any commands...
This could also allow for testing from the outside because you could point sysinfo at some static directory to mock the proc filesystem. @fearful-symmetry
Running `go test -v .` outputs all the data collected as JSON. But I like the idea of an example command.
IIUC, looking at 2.6.23 (the earliest kernel supported by Go) the two architectures that do not use 100 HZ are alpha and ia64. And neither of those are supported by...