On the HMC of A65 (HMC 2.16 with API version 4.10), the "power-consumption" metric comes back under the name "power-consumption-watts". The WS-API book for 2.16 GA 1.5 describes it as "power-consumption".
The current version of the metric definition file defines it as "power-consumption", following the description in the WS-API book, which leads to this warning and to the metric not being exported:
.../zhmc_prometheus_exporter/zhmc_prometheus_exporter.py:1315: UserWarning: Skipping metric 'power-consumption-watts' of metric group 'logical-partition-usage' returned by the HMC that is not defined in the 'metrics' section of metric definition file examples/metrics.yaml
On the HMC of A65 (HMC 2.16 with API version 4.10), the "power-consumption" metric comes back under the name "power-consumption-watts". The WS-API book for 2.16 GA 1.5 describes it as "power-consumption".
The current version of the metric definition file defines it as "power-consumption", following the description in the WS-API book, which leads to this warning and to the metric not being exported: