Skip to content

Commit

Permalink
Update ios-xr-telemetry-power-consumption-docker-compose.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fcuiller committed Dec 21, 2023
1 parent 3816ba2 commit 8e8af29
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions _tutorials/ios-xr-telemetry-power-consumption-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,21 @@ usable_power_capacity integer
Chassis power consumption is located in system_power_input and system_power_used.
For each location, IOS-XR will allocate a power budget stored in power_allocated. Last, current power utilization per location can be found in power_consumed/value.

As seen above, some of the reported values are stored as 'string'. Extra processing might be required to transform those keys as integer. On telegraf, this can be achieved using a convertor processor. Here is a sample example for ASR 9000:

<div class="highlighter-rouge">
<pre class="highlight">
<code>
[[processors.converter]]
#apply only to specified measurement
namepass = ["Cisco-IOS-XR-sysadmin-asr9k-envmon-ui:environment/oper/power/location/pem_attributes"]
#convert value from string to int for grafana to be happy :)
[processors.converter.fields]
<mark>integer = ["power_consumed/value"]</mark>
</code>
</pre>
</div>

Visualization has been tested on device located in Brussels IOS-XR TAC lab.
A first simple overall power consumption dashboard has been built for an ASR 9000 and a NCS 5500:

Expand Down

0 comments on commit 8e8af29

Please sign in to comment.