<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 9 May 2014 16:37, Jonathan Kinred <span dir="ltr"><<a href="mailto:jonathan.kinred@gmail.com" target="_blank">jonathan.kinred@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I've done a fairly lengthy search and have had a glance over the code but I still don't fully understand how the StoreRates works. I understand that it takes COUNTER, DERIVE and ABSOLUTE types and converts then to GAUGE.<br>

<br></div><div>To make it more specific, can someone help me understand the disk plugin disk_ops/read metric, passed through the  write_graphite plugin with "StoreRates true".<br></div><div><br></div><div>Looking at the disk plugin source code, it reads /proc/diskstats and produces a disk_ops/read DERIVE value (e.g. 34500).<br>

<br></div><div>The write_graphite plugin then calls uc_get_rate when StoreRates is true and a GAUGE value is returned.<br><br></div><div>My specific questions are:<br></div><div>* How does the conversion work?<br></div><div>

* Does it know about the previous value (e.g. 340000)<br></div><div>* Does the Interval parameter play a role?<span class=""><font color="#888888"><br><br>Jonathan<br></font></span></div></div>
</blockquote></div><br></div><div class="gmail_extra">With the help of #collectd on FreeNode I think I've worked out the confusion. It was based on my skimming over the DERIVE type (which are  derived into a per second value).<br>
<br>The other confusing part was the following section in the write_amqp plugin documentation which made me think the DERIVE value was going through some conversion to become a GAUGE:<br>"Determines whether or not <code>COUNTER</code>, <code>DERIVE</code> and <code>ABSOLUTE</code> data sources
are converted to a <em>rate</em> (i.e. a <code>GAUGE</code> value)."<br><br></div><div class="gmail_extra">Is this correct? I think that DERIVE and ABSOLUTE are already "rates".<br></div></div>