Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cannot dispatch fine-grained samples during plugin read #557
I've written a plugin for the TED5000, which is like the TED device currently supported by collectd but has an IP interface and retains history internally at one second intervals. I'm querying the device at longer intervals and retrieving all samples measured since the last query. Since rrdtool does aggregation, I'd like each plugin read to dispatch each sample collected since the last read.
At a 10-second read interval, this means submitting ten samples for each of the observed quantities (power in watts, line voltage). An example of what I get from collectd-5.4.1 is:
It appears that collectd is re-ordering the values rather than adding them in as-dispatched order. A subset of the data is making it to the database.
Should I be able to use collectd to periodically add multiple samples that were collected over the read interval? If so, any suggestion to what I'm doing wrong?