From 320b77d3b261dccae2be0c6c8072f1922d33af15 Mon Sep 17 00:00:00 2001 From: Jason Zhang Date: Mon, 18 Mar 2013 17:55:09 -0700 Subject: [PATCH] Updated the description of get_counters routine. Modified the second counter description of get_counters. Fixes: bug 1156814 Change-Id: Ie7d4d3d93f853598069d8676f6be4335ddd3afb9 --- doc/source/contributing/plugins.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/source/contributing/plugins.rst b/doc/source/contributing/plugins.rst index 1f8a43992..96a5e184d 100644 --- a/doc/source/contributing/plugins.rst +++ b/doc/source/contributing/plugins.rst @@ -77,10 +77,8 @@ from the hypervisor and sends back two ``Counter`` objects. The first one, name "cpu", is of type "cumulative", meaning that between two polls, its value is not reset, or in other word that the cpu value is always provided as a duration that continuously increases since the creation of the instance. The second one, -named "instance", is of type "cumulative", meaning that it's value is just the -volume since the last poll. Here, the instance counter is only used as a way -to tell the system that the instance is still running, hence the hard coded -value of 1. +named "cpu_util", is of type "gauge", meaning that its value is the percentage +of cpu utilization. Note that the ``LOG`` method is only used as a debugging tool and does not participate in the actual metering activity.