zhmcclient / zhmc-prometheus-exporter

A Prometheus exporter for the IBM Z HMC
Apache License 2.0
12 stars 8 forks source link

Incorrect metric name "power-consumption" in metric group "logical-partition-usage" #475

Closed andy-maier closed 4 months ago

andy-maier commented 4 months ago

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
andy-maier commented 4 months ago

Cannot be rolled back because the support for variable "se_features" in export conditions has not been rolled back to 1.5. (PR #460).