Summing up all the PEM values, we get the same total as the values in power-usage-zone-information, so for MX I guess we can use the metrics from https://github.com/czerwonk/junos_exporter/issues/66 once it's implemented or use the "new" power-usage-zone-information metrics from here
"For EX switches we don't have a command to retrieve the exact energy consumption (the 75W that shows the command "show chassis power-budget-statistics" is the max consumption available). To estimate the real consumption we have to do it regarding Gpbs switched/routed traffic with a method called ECR (Energy Consumption Rating)"
and it basically uses a lookup table to determine that for EX2300-48T @ 90% utilization we're using 70W
For a model, the variance between 0-100% is very small, so it's easier to get the average value per device type and use that in a Prometheus recording rule if needed. I wouldn't add this mapping in the exporter
Because standards...
show chassis environment pem
returns no power information for some equipment typesProposal
Add a
power
module (similar to theenvironment
one) that uses theshow chassis power detail...
commandAs far I can tell, for the following device types, we have to use different commands to extract this info:
SRX
show chassis power detail node 0
show chassis power detail node 1
MX
Summing up all the PEM values, we get the same total as the values in
power-usage-zone-information
, so for MX I guess we can use the metrics from https://github.com/czerwonk/junos_exporter/issues/66 once it's implemented or use the "new"power-usage-zone-information
metrics from hereshow chassis power detail
QFX
About the same as SRX.
EX
From Juniper support:
"For EX switches we don't have a command to retrieve the exact energy consumption (the 75W that shows the command "show chassis power-budget-statistics" is the max consumption available). To estimate the real consumption we have to do it regarding Gpbs switched/routed traffic with a method called ECR (Energy Consumption Rating)"
and it basically uses a lookup table to determine that for EX2300-48T @ 90% utilization we're using 70W
For a model, the variance between 0-100% is very small, so it's easier to get the average value per device type and use that in a Prometheus recording rule if needed. I wouldn't add this mapping in the exporter