Re: [collectd] collectd for embedded, time tag

2020-04-23 Thread Florian Forster
Hi Denys, On 2020-04-23 12:14, Denys Fedoryshchenko wrote: I can try to write patch, for example: that'd great! Extending sockent_t by adding there uint8_t (or int) "options" parameter, where certain optional bits can be set. So, for example bit 0 will be "ZERO_AS_CURRENT_TIME" Then,

Re: [collectd] collectd for embedded, time tag

2020-04-23 Thread Denys Fedoryshchenko
On 2020-04-23 12:21, Florian Forster wrote: Hi Denys, right now, the network plugin treats a zero time as an error and won't pass the metric on to the daemon. The "collectd.org/network" Go package doesn't appear to do this check. How does sleeping work on the ESP8266? Could you keep track of

Re: [collectd] collectd for embedded, time tag

2020-04-23 Thread Florian Forster
Hi Denys, right now, the network plugin treats a zero time as an error and won't pass the metric on to the daemon. The "collectd.org/network" Go package doesn't appear to do this check. How does sleeping work on the ESP8266? Could you keep track of the time spent sleeping and increment the

[collectd] RFC: Should we maintain plugins written in Go?

2020-04-23 Thread Florian Forster
Hi everybody, TL,DR: Should we create a new Git repository and maintain plugins written in the "Go" programming language? the last days, I spent some time improving the "collectd.org/plugin" package [0]. In a nutshell, it allows to implement a plugin in Go, compile it to a shared object and

[collectd] Importing external Python modules

2020-04-23 Thread adl1995
I'm writing a Collectd plugin that calls an external API. For this I wish to use the requests Python library. In my collectd.conf file I added: LoadPlugin python Plugin python ModulePath "/usr/lib/collectd/" Import "module_name" Module module_name> ... /Module /Plugin In my Python file I

Re: [collectd] collectd for embedded, time tag

2020-04-23 Thread Denys Fedoryshchenko
On 2020-04-23 14:33, Florian Forster wrote: Hi Denys, On 2020-04-23 12:14, Denys Fedoryshchenko wrote: I can try to write patch, for example: that'd great! Extending sockent_t by adding there uint8_t (or int) "options" parameter, where certain optional bits can be set. So, for example bit