From: Florian Forster Date: Mon, 20 Feb 2012 16:20:47 +0000 (+0100) Subject: write_graphite plugin: Enable "StoreRates" by default. X-Git-Tag: collectd-5.1.0~28 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c11d055ca7fe770a65827f6274f963510a8eb96;p=collectd.git write_graphite plugin: Enable "StoreRates" by default. Change-Id: I814c45d035ce42de07815fecfe0b667080e2d900 --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 6f79266a..a3fe184f 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -4814,8 +4814,8 @@ underscore (C<_>). =item B B|B -If set to B, convert counter values to rates. If set to B (the -default) counter values are stored as is, i.Ee. as an increasing integer +If set to B (the default), convert counter values to rates. If set to +B counter values are stored as is, i.Ee. as an increasing integer number. =item B B|B diff --git a/src/write_graphite.c b/src/write_graphite.c index e59572b1..d6583a75 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -621,6 +621,7 @@ static int wg_config_carbon (oconfig_item_t *ci) cb->prefix = NULL; cb->postfix = NULL; cb->escape_char = WG_DEFAULT_ESCAPE; + cb->store_rates = 1; pthread_mutex_init (&cb->send_lock, /* attr = */ NULL);