@@ -119,10 +119,34 @@ var (
119
119
nil ,
120
120
),
121
121
},
122
+ "chassis_power_powersupply_power_efficiency_percentage" : {
123
+ desc : prometheus .NewDesc (
124
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_efficiency_percentage" ),
125
+ "rated efficiency, as a percentage, of the associated power supply on this chassis" ,
126
+ ChassisPowerSupplyLabelNames ,
127
+ nil ,
128
+ ),
129
+ },
122
130
"chassis_power_powersupply_last_power_output_watts" : {
123
131
desc : prometheus .NewDesc (
124
132
prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_last_power_output_watts" ),
125
- "last_power_output_watts of powersupply on this chassis" ,
133
+ "average power output, measured in Watts, of the associated power supply on this chassis" ,
134
+ ChassisPowerSupplyLabelNames ,
135
+ nil ,
136
+ ),
137
+ },
138
+ "chassis_power_powersupply_power_input_watts" : {
139
+ desc : prometheus .NewDesc (
140
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_input_watts" ),
141
+ "measured input power, in Watts, of powersupply on this chassis" ,
142
+ ChassisPowerSupplyLabelNames ,
143
+ nil ,
144
+ ),
145
+ },
146
+ "chassis_power_powersupply_power_output_watts" : {
147
+ desc : prometheus .NewDesc (
148
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_output_watts" ),
149
+ "measured output power, in Watts, of powersupply on this chassis" ,
126
150
ChassisPowerSupplyLabelNames ,
127
151
nil ,
128
152
),
@@ -407,8 +431,12 @@ func parseChassisPowerInfoPowerSupply(ch chan<- prometheus.Metric, chassisID str
407
431
defer wg .Done ()
408
432
chassisPowerInfoPowerSupplyName := chassisPowerInfoPowerSupply .Name
409
433
chassisPowerInfoPowerSupplyID := chassisPowerInfoPowerSupply .MemberID
434
+ chassisPowerInfoPowerSupplyEfficiencyPercent := chassisPowerInfoPowerSupply .EfficiencyPercent
410
435
chassisPowerInfoPowerSupplyPowerCapacityWatts := chassisPowerInfoPowerSupply .PowerCapacityWatts
436
+ chassisPowerInfoPowerSupplyPowerInputWatts := chassisPowerInfoPowerSupply .PowerInputWatts
437
+ chassisPowerInfoPowerSupplyPowerOutputWatts := chassisPowerInfoPowerSupply .PowerOutputWatts
411
438
chassisPowerInfoPowerSupplyLastPowerOutputWatts := chassisPowerInfoPowerSupply .LastPowerOutputWatts
439
+
412
440
chassisPowerInfoPowerSupplyState := chassisPowerInfoPowerSupply .Status .State
413
441
chassisPowerInfoPowerSupplyHealth := chassisPowerInfoPowerSupply .Status .Health
414
442
chassisPowerSupplyLabelvalues := []string {"power_supply" , chassisID , chassisPowerInfoPowerSupplyName , chassisPowerInfoPowerSupplyID }
@@ -418,8 +446,11 @@ func parseChassisPowerInfoPowerSupply(ch chan<- prometheus.Metric, chassisID str
418
446
if chassisPowerInfoPowerSupplyHealthValue , ok := parseCommonStatusHealth (chassisPowerInfoPowerSupplyHealth ); ok {
419
447
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_health" ].desc , prometheus .GaugeValue , chassisPowerInfoPowerSupplyHealthValue , chassisPowerSupplyLabelvalues ... )
420
448
}
449
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_efficiency_percentage" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyEfficiencyPercent ), chassisPowerSupplyLabelvalues ... )
421
450
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_last_power_output_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyLastPowerOutputWatts ), chassisPowerSupplyLabelvalues ... )
422
451
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_capacity_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerCapacityWatts ), chassisPowerSupplyLabelvalues ... )
452
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_input_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerInputWatts ), chassisPowerSupplyLabelvalues ... )
453
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_output_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerOutputWatts ), chassisPowerSupplyLabelvalues ... )
423
454
}
424
455
425
456
func parseNetworkAdapter (ch chan <- prometheus.Metric , chassisID string , networkAdapter * redfish.NetworkAdapter , wg * sync.WaitGroup ) error {
0 commit comments