Report power metrics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Undecided
|
Unassigned |
Bug Description
Ceilometer reports Power metrics(W) under meter name "hardware.
~~~
[stack@devstack ~]$ openstack metric list | grep -i current
| 4ccdc967-
| a2be34ce-
~~~
This happens because ipmitool generates Power metrics with Current metrics and Ceilometer is not able to differentiate between the two.
Ceilometer executes below command to capture Current metrics.
~~~
[stack@devstack ~]$ sudo ipmitool -v sdr type Current
Sensor ID : Current 1 (0x6b)
Entity ID : 10.1 (Power Supply)
Sensor Type (Threshold) : Current (0x03)
Sensor Reading : 0.800 (+/- 0) Amps
Status : ok
Nominal Reading : 0.000
Normal Maximum : 0.000
Positive Hysteresis : Unspecified
Negative Hysteresis : Unspecified
Minimum sensor range : Unspecified
Maximum sensor range : Unspecified
Event Message Control : Per-threshold
Readable Thresholds : No Thresholds
Settable Thresholds : No Thresholds
Assertion Events :
Assertions Enabled :
Sensor ID : Pwr Consumption (0x76)
Entity ID : 7.1 (System Board)
Sensor Type (Threshold) : Current (0x03)
Sensor Reading : 132 (+/- 0) Watts
Status : ok
Nominal Reading : 1034.000
Normal Maximum : 1056.000
Upper critical : 1914.000
Upper non-critical : 1738.000
Positive Hysteresis : Unspecified
Negative Hysteresis : Unspecified
Minimum sensor range : Unspecified
Maximum sensor range : 5588.000
Event Message Control : Per-threshold
Readable Thresholds : unc ucr
Settable Thresholds : unc
Assertion Events :
Assertions Enabled : unc+ ucr+
Deassertions Enabled : unc+ ucr+
~~~
Power metrics should be reported under the meter name "hardware.
This issue was fixed in the openstack/ ceilometer 22.0.0.0rc1 release candidate.