instance meter value never changes.

Bug #1266313 reported by Adrian Turjak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Pradeep Kilambi

Bug Description

The instance meter doesn't work as described here:
http://docs.openstack.org/developer/ceilometer/measurements.html#compute-nova

Currently the volume value is always "1.0" and doesn't change. If this was meant to represent state (1 = active, 0 = suspended, etc) then this might work, but that isn't the case either.

The documentation says it tracks "Duration of instance" which sounds like a cumulative meter to me rather than a gauge, but the meter is explicitly a gauge. Nor are the logs consistent enough to use by adding up all the volume values. Mainly because nova (or the compute agent) forces new ceilometer logs on suspensions and reactivation. These forced logs would be wonderful if this was a meter representing state changes, and would mean things like uptime could be easily computed locally based on the forced logs and changes in state.

As it stands, this meter doesn't seem to do what it is meant to. Or there are differing opinions on what it should do.

A gauge meter that represents states would be very useful, especially since there isn't anything like it in ceilometer, and it seems this meter isn't too far from being that as it is.

An uptime (or duration) meter would also be useful, but if we had a state change meter and it was well documented then uptime could be computed from it.

Currently the instance meter is neither, but seems like it tries to be both. :(

Revision history for this message
Julien Danjou (jdanjou) wrote :

The documentation is wrong, this meter meters the instance itself, not its duration.

Things like uptime, duration, states etc should be provided by the API via the metadata of Ceilometer.

Changed in ceilometer:
status: New → Triaged
importance: Undecided → Low
tags: added: documentation
Changed in ceilometer:
assignee: nobody → Pradeep Kilambi (pkilambi)
Changed in ceilometer:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/66746

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/66746
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=39f545c19af76c0f655cc7dcb150e820bea816fc
Submitter: Jenkins
Branch: master

commit 39f545c19af76c0f655cc7dcb150e820bea816fc
Author: Pradeep Kilambi <email address hidden>
Date: Tue Jan 14 13:02:01 2014 -0800

    Fix docs on what an instance meter represents

    instance meter is a gauge which meters an instance
    itself. The current description of duration of
    instance is misleading.

    fixes bug #1266313

    Change-Id: I902606928fc59f5663d638d05f237fe3e5e1175d

Changed in ceilometer:
status: In Progress → Fix Committed
gordon chung (chungg)
Changed in ceilometer:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.