On Thu, Nov 15, 2018 at 07:00:30PM +0100, Landry Breuil wrote:
> Hi,
> 
> here's a wip port for https://github.com/influxdata/telegraf/ - the
> agent collecting metrics from influxdata, goes well with influxdb.
> it's go so we need to vendor dependencies as usual, and the resulting
> binary is 100mb, but it seems it's able to collect basic system
> statistics with its default config:

Updated to 1.9.0, looking for okays to import.

Note that the 'inputs.system' plugin supposed to collect
loadavg/uptime/process stats blows:

2018-12-07T10:29:03Z E! [telegraf] Error running agent: invalid argument

my wild guess is that go hasnt been updated to cope with all the
'interesting' changes that happened in the kernel wrt process
timekeeping & cpu_spin - so anyone understanding go lowlevel tentacles in the
system is welcome to look into the corresponding code, which is probably
https://github.com/shirou/gopsutil for the consumer part (my guess would
be
https://github.com/shirou/gopsutil/blob/4a180b209f5f494e5923cfce81ea30ba23915877/cpu/cpu_openbsd.go#L19
but ugh) or something in go itself.

Landry

Attachment: telegraf-1.9.0.tgz
Description: application/tar-gz

Reply via email to