prometheus / procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Apache License 2.0
756 stars 311 forks source link

Add `hw_counters` for infiniband device. #549

Closed aztecher closed 9 months ago

aztecher commented 1 year ago

This change adds hw_counters to the existing infiniband class so that additional counter information for infiniband devices can be obtained.

In preparing this PR, I have confirmed that hw_counters for Infiniband devices can be obtained from the mlx5_core kernel module included in multiple Linux distributions and multiple OS versions. I have also confirmed that it is possible to get hw_counters from the mlx5_core kernel module included in the OFED driver. However, I have not checked for other cases (e.g. mlx4_core), so this implementation is limited to mlx5 only.