From a725f64f3c7af81b96d1b5f2bcab6e6b8c70cf44 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 8 Oct 2012 16:55:00 +0200 Subject: [PATCH] network: fix create/update counter type & doc Change-Id: I96e662663c8d14a6d841746033be0b57d23ee9ee Signed-off-by: Julien Danjou --- ceilometer/network/notifications.py | 2 +- doc/source/measurements.rst | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ceilometer/network/notifications.py b/ceilometer/network/notifications.py index f87c9b67d..7fec76403 100644 --- a/ceilometer/network/notifications.py +++ b/ceilometer/network/notifications.py @@ -86,7 +86,7 @@ class NetworkNotificationBase(plugin.NotificationBase): if network_counter_name != self.resource_name: yield counter.Counter(source='?', name=network_counter_name, - type=counter.TYPE_GAUGE, + type=counter.TYPE_DELTA, volume=1, user_id=message['_context_user_id'], project_id=message['payload']['tenant_id'], diff --git a/doc/source/measurements.rst b/doc/source/measurements.rst index cca59cb8d..6b14b4a10 100644 --- a/doc/source/measurements.rst +++ b/doc/source/measurements.rst @@ -64,17 +64,14 @@ Network (Quantum) Name Type Volume Resource Note ======================== ========== ======= ======== ======================================================= network Gauge 1 netw ID Duration of network -network.create Gauge 1 netw ID -network.update Gauge 1 netw ID -network.exists Gauge 1 netw ID +network.create Delta request netw ID Creation requests for this network +network.update Delta request netw ID Update requests for this network subnet Gauge 1 subnt ID Duration of subnet -subnet.create Gauge 1 subnt ID -subnet.update Gauge 1 subnt ID -subnet.exists Gauge 1 subnt ID +subnet.create Delta request subnt ID Creation requests for this subnet +subnet.update Delta request subnt ID Update requests for this subnet port Gauge 1 port ID Duration of port -port.create Gauge 1 port ID -port.update Gauge 1 port ID -port.exists Gauge 1 port ID +port.create Delta request port ID Creation requests for this port +port.update Delta request port ID Update requests for this port floating_ip Gauge 1 ip ID Duration of floating ip ======================== ========== ======= ======== =======================================================