[collectd] [PATCH 1/2] write_http: make StoreRates work for JSON format, too.

Florian Forster octo at verplant.org
Wed Mar 24 17:57:51 CET 2010


Hi Chris,

On Tue, Mar 23, 2010 at 08:53:30PM -0700, Chris Buben wrote:
> StoreRates for write_http was inconsistent in that it only functioned
> for WH_FORMAT_COMMAND.  Extend StoreRates so that it works when using
> WH_FORMAT_JSON, too.

thank you very much for your patch :) I've changed your code a little.
The code in write_http has a minor issue and I guess you copied that:
The "store rates" option only converted "counter" values, but left
"derive" and "absolute" values as they are. This isn't the intended
behavior.

The changes are in the master branch and will be included in the next
minor version.

Regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100324/5c7016e5/attachment.pgp 


More information about the collectd mailing list