Provide the meters unit's in /meters
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:
- 2013.1
- Started by
- Nick Barcet
- Completed by
- Nick Barcet
Related branches
Related bugs
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:/
Addressed by: https:/
Provide the meters unit's in /meters