@@ -193,10 +193,34 @@ var (
193
193
nil ,
194
194
),
195
195
},
196
+ "chassis_power_powersupply_power_efficiency_percentage" : {
197
+ desc : prometheus .NewDesc (
198
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_efficiency_percentage" ),
199
+ "rated efficiency, as a percentage, of the associated power supply on this chassis" ,
200
+ ChassisPowerSupplyLabelNames ,
201
+ nil ,
202
+ ),
203
+ },
196
204
"chassis_power_powersupply_last_power_output_watts" : {
197
205
desc : prometheus .NewDesc (
198
206
prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_last_power_output_watts" ),
199
- "last_power_output_watts of powersupply on this chassis" ,
207
+ "average power output, measured in Watts, of the associated power supply on this chassis" ,
208
+ ChassisPowerSupplyLabelNames ,
209
+ nil ,
210
+ ),
211
+ },
212
+ "chassis_power_powersupply_power_input_watts" : {
213
+ desc : prometheus .NewDesc (
214
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_input_watts" ),
215
+ "measured input power, in Watts, of powersupply on this chassis" ,
216
+ ChassisPowerSupplyLabelNames ,
217
+ nil ,
218
+ ),
219
+ },
220
+ "chassis_power_powersupply_power_output_watts" : {
221
+ desc : prometheus .NewDesc (
222
+ prometheus .BuildFQName (namespace , ChassisSubsystem , "power_powersupply_power_output_watts" ),
223
+ "measured output power, in Watts, of powersupply on this chassis" ,
200
224
ChassisPowerSupplyLabelNames ,
201
225
nil ,
202
226
),
@@ -508,8 +532,12 @@ func parseChassisPowerInfoPowerSupply(ch chan<- prometheus.Metric, chassisID str
508
532
defer wg .Done ()
509
533
chassisPowerInfoPowerSupplyName := chassisPowerInfoPowerSupply .Name
510
534
chassisPowerInfoPowerSupplyID := chassisPowerInfoPowerSupply .MemberID
535
+ chassisPowerInfoPowerSupplyEfficiencyPercent := chassisPowerInfoPowerSupply .EfficiencyPercent
511
536
chassisPowerInfoPowerSupplyPowerCapacityWatts := chassisPowerInfoPowerSupply .PowerCapacityWatts
537
+ chassisPowerInfoPowerSupplyPowerInputWatts := chassisPowerInfoPowerSupply .PowerInputWatts
538
+ chassisPowerInfoPowerSupplyPowerOutputWatts := chassisPowerInfoPowerSupply .PowerOutputWatts
512
539
chassisPowerInfoPowerSupplyLastPowerOutputWatts := chassisPowerInfoPowerSupply .LastPowerOutputWatts
540
+
513
541
chassisPowerInfoPowerSupplyState := chassisPowerInfoPowerSupply .Status .State
514
542
chassisPowerInfoPowerSupplyHealth := chassisPowerInfoPowerSupply .Status .Health
515
543
chassisPowerSupplyLabelvalues := []string {"power_supply" , chassisID , chassisPowerInfoPowerSupplyName , chassisPowerInfoPowerSupplyID }
@@ -519,8 +547,11 @@ func parseChassisPowerInfoPowerSupply(ch chan<- prometheus.Metric, chassisID str
519
547
if chassisPowerInfoPowerSupplyHealthValue , ok := parseCommonStatusHealth (chassisPowerInfoPowerSupplyHealth ); ok {
520
548
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_health" ].desc , prometheus .GaugeValue , chassisPowerInfoPowerSupplyHealthValue , chassisPowerSupplyLabelvalues ... )
521
549
}
550
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_efficiency_percentage" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyEfficiencyPercent ), chassisPowerSupplyLabelvalues ... )
522
551
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_last_power_output_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyLastPowerOutputWatts ), chassisPowerSupplyLabelvalues ... )
523
552
ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_capacity_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerCapacityWatts ), chassisPowerSupplyLabelvalues ... )
553
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_input_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerInputWatts ), chassisPowerSupplyLabelvalues ... )
554
+ ch <- prometheus .MustNewConstMetric (chassisMetrics ["chassis_power_powersupply_power_output_watts" ].desc , prometheus .GaugeValue , float64 (chassisPowerInfoPowerSupplyPowerOutputWatts ), chassisPowerSupplyLabelvalues ... )
524
555
}
525
556
526
557
func parseNetworkAdapter (ch chan <- prometheus.Metric , chassisID string , networkAdapter * redfish.NetworkAdapter , wg * sync.WaitGroup ) error {
0 commit comments