Skip to content

Commit

Permalink
Added new z16 partition power metrics
Browse files Browse the repository at this point in the history
Details:

* Added support for the new power consumption metrics in z16 (issue #448):

  In metric group 'zcpc-environmentals-and-power':

  - 'total_partition_power_watt' - Total accumulated power consumption of
    all partitions/LPARs
  - 'total_infrastructure_power_watt' - Total accumulated power consumption of
    infrastructure components
  - 'total_unassigned_power_watt' - Total accumulated power consumption of
    unassigned components

  In metric group 'logical-partition-usage':

  - 'partition_power_watt' - Accumulated power consumption of the LPAR

Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Feb 21, 2024
1 parent 69487c0 commit 7b21ea4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ will also work with the prior version of the file (but not vice versa).
and 'logical-partition-resource' (only returned for SE versions between
2.14.0+MCLs and 2.15.0)

* Added support for the new power consumption metrics in z16 (issue #448):

In metric group 'zcpc-environmentals-and-power':

- 'total_partition_power_watt' - Total accumulated power consumption of
all partitions/LPARs
- 'total_infrastructure_power_watt' - Total accumulated power consumption of
infrastructure components
- 'total_unassigned_power_watt' - Total accumulated power consumption of
unassigned components

In metric group 'logical-partition-usage':

- 'partition_power_watt' - Accumulated power consumption of the LPAR

**Cleanup:**

* Increased versions of GitHub Actions plugins to increase node.js runtime
Expand Down
24 changes: 24 additions & 0 deletions examples/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ metrics:
percent: false
exporter_name: zvm_paging_rate_pages_per_second
exporter_desc: z/VM paging rate in pages/sec
power-consumption:
if: "'power-consumption' in resource_obj.properties" # Added by feature environmental-metrics
metric_type: counter
percent: false
exporter_name: partition_power_watt
exporter_desc: Accumulated power consumption of the LPAR since start of CPC, not present before feature environmental-metrics

channel-usage:
channel-usage:
Expand Down Expand Up @@ -1135,6 +1141,24 @@ metrics:
percent: false
exporter_name: exhaust_temperature_celsius
exporter_desc: Exhaust temperature of the CPC
total-partition-power-consumption-watts:
if: "'total-partition-power-consumption-watts' in resource_obj.properties" # Added by feature environmental-metrics
metric_type: counter
percent: false
exporter_name: total_partition_power_watt
exporter_desc: Total accumulated power consumption of all partitions/LPARs of the CPC since start of the CPC, not present before feature environmental-metrics
total-infrastructure-power-consumption-watts:
if: "'total-infrastructure-power-consumption-watts' in resource_obj.properties" # Added by feature environmental-metrics
metric_type: counter
percent: false
exporter_name: total_infrastructure_power_watt
exporter_desc: Total accumulated power consumption of infrastructure components of the CPC since start of the CPC (including top of rack switches, SE/HMAs, and PDUs) that should not be accounted to partition/LPAR power, not present before feature environmental-metrics
total-unassigned-power-consumption-watts:
if: "'total-unassigned-power-consumption-watts' in resource_obj.properties" # Added by feature environmental-metrics
metric_type: counter
percent: false
exporter_name: total_unassigned_power_watt
exporter_desc: Total accumulated power consumption of unused I/O adapters and components that are not assigned to any partition/LPAR of the CPC since start of the CPC (including standby components), not present before feature environmental-metrics

environmental-power-status:
linecord-one-power-phase-A:
Expand Down

0 comments on commit 7b21ea4

Please sign in to comment.