[Openstack] [metering] delta vs. cumulative meters

Loic Dachary loic at enovance.com
Tue May 29 20:25:46 UTC 2012


On 05/29/2012 07:58 PM, Doug Hellmann wrote:
>
>
> On Tue, May 29, 2012 at 12:30 PM, Loic Dachary <loic at enovance.com <mailto:loic at enovance.com>> wrote:
>
>     On 05/29/2012 05:42 PM, Doug Hellmann wrote:
>     > IIRC, the meters discussed in the wiki [1] are supposed to show "delta" values (usage since the last time an event was generated), although the "Alternate Gauge Design" section discusses cumulative meters instead. The libvirt pollsters we have now produce cumulative data, and it might be complicated and error-prone to change them to compute the deltas internally before generating events. On the other hand, some of the other counters may be more complicated to generate as cumulative values.
>     >
>     > Rather than taking an either/or approach, I propose we document for each counter whether it uses the delta or cumulative approach. The API server can ask the meter plugin for that piece of information when calculating the aggregate value so that the caller does not have to keep track of the rules for each meter.
>     >
>     I tend to prefer using a gauge and I agree that documenting what was preferred (gauge or delta) for a given meter / counter is enough.
>
>
> Just to be clear, by "gauge" do you mean the cumulative form of the counter?
>  
Yes, I do ;-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120529/5c2aaf04/attachment.html>


More information about the Openstack mailing list