Provide the meters unit's in /meters

Registered by Nick Barcet

We need to be able to allow for unit introspection when queried about meters, such as in /meters

Blueprint information

Status:
Complete
Approver:
Nick Barcet
Priority:
Medium
Drafter:
Guillaume Pernot
Direction:
Approved
Assignee:
Guillaume Pernot
Definition:
Approved
Series goal:
Accepted for grizzly
Implementation:
Implemented
Milestone target:
milestone icon 2013.1
Started by
Nick Barcet
Completed by
Nick Barcet

Related branches

Sprints

Whiteboard

Proposition 1:
Create a separate file that specify the unit for each meters, to be provided by each meter's writer at code time.

Proposition 2:
Meter to provide this information within each event, which would be simpler to implement, but waste a bit more space.
How much is wasted: imagine a 1 KB event, an unit would represent around 10 bytes, so it's 1%.
Also, storing units allows the unit to change in the time without messing with old events records.

CW need the unit information also. CW has different unit type as ceilometer's metering in some event. We also need consider that possibly different hypervisor has different unit returned. I'd suggest to add the unit into counter. -- yjiang5

Gerrit topic: https://review.openstack.org/#q,topic:bp/provide-meter-units,n,z

Addressed by: https://review.openstack.org/18413
    Provide the meters unit's in /meters

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.