[collectd] Batching writes from the same plugin?

Dragos Manolescu Dragos.Manolescu at servicenow.com
Tue Feb 26 21:02:51 CET 2013

Hi --

(Please contact me by direct email for clarifications and/or follow up, I am not subscribed to the mailing list.)

I wrote a collectd Java plugin that publishes the written value lists to an Apache Kafka topic. If possible, I'd like to batch in the same message values related to each other.

For example, instead of publishing 3 separate messages corresponding to what's coming from the memory plugin:


If viable I would like to send a single message that contains used, buffered and cached together. I have two questions about doing that:

  1.  Are the writes from the same plugin/type/plugin instance atomic? So far I've never seen writes from different plugins interleaved but I don't want to assume that.
  2.  Is there a mechanism that signals when a plugin starts/stops writing (or alternatively to determine in advance how many writes the plugin is going to make) so I could batch the values together?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130226/fcc9ea20/attachment.html>

More information about the collectd mailing list