[collectd] Questions about coding standards & writing plugins

Richard W.M. Jones rjones at redhat.com
Fri Nov 2 15:32:02 CET 2007

Florian Forster wrote:
> - First there's a name,
> - then a type (in our case COUNTER or GAUGE)
> - followed by a min and a max value.

Thanks for the quick response.  A few more questions about types.db:

The data we collect in libvirt comes from Xen, and it includes the CPU 
time used in nanoseconds as a 64 bit signed quantity.  I have no idea 
how accurate this is, but that's the data we report.  Should I define a 
new type (eg. 'virt_cpu_time_ns') setting the max value to whatever 
2^63-1 is?  Or would it be preferable to divide through, eg. to convert 
to us, ms, or even seconds?  Can I pass float values?


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071102/edfbd3c0/attachment.bin 

More information about the collectd mailing list