procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Including node_guid in InfiniBandDevice

Open di3go-sona opened this issue 1 year ago • 1 comments

Hi, at my org we are using the infiniband collector in node_exporter .

For our case it's extremely useful to also export an unique identifier like node_guid that can be read from /sys/class/infiniband/<device>/node_guid

The exporter code heavily relies on the InfiniBandClass contained here, and that identifier is not collected

https://github.com/prometheus/procfs/blob/a49c6d20a05fcee86662df0e79e5e8c59aa6197a/sysfs/class_infiniband.go#L121-L129

Is there any design reason for this choic,e or can I just contribute a PR for that ?

di3go-sona avatar Sep 12 '24 10:09 di3go-sona

Sounds reasonable, so a PR would be welcome.

discordianfish avatar Sep 22 '24 16:09 discordianfish