infiniband: Add node_infiniband_port_info metric with link_layer label

未关闭
#3,893 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
go, prometheus
领域
observability

调研方向

The issue names /sys/class/infiniband/<device>/ports/<port>/link_layer and says procfs already parses it as InfiniBandPort.LinkLayer. Start by reading the Infiniband collector and its tests to find how per-port metrics are exposed. Done means node_infiniband_port_info includes the per-port link_layer label; the linked PR #3892 indicates work is already underway.

由索引模型根据 Issue 内容生成。

描述

Add a per-port node_infiniband_port_info metric with a link_layer label
read from /sys/class/infiniband/<device>/ports/<port>/link_layer
(already parsed by procfs as InfiniBandPort.LinkLayer).

This makes it possible to tell native InfiniBand ports from RoCE (Ethernet)
ports. For example, a host with ConnectX-6 Dx (Ethernet) and ConnectX-7
(InfiniBand) adapters now exposes:

node_infiniband_port_info{device="mlx5_0",link_layer="Ethernet",port="1"} 1
node_infiniband_port_info{device="mlx5_2",link_layer="InfiniBand",port="1"} 1

link_layer is exposed per port rather than on node_infiniband_info because
it is a per-port attribute. Multi-port devices such as mlx4 (ConnectX-3) can
run ports with different link layers, which would give duplicate or
ambiguous node_infiniband_info series.

PR: https://github.com/prometheus/node_exporter/pull/3892

主要语言
Go
星标
13.9k
派生
2.8k
平均合并
2 天 10 小时
30 天内合并 PR
16

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

prometheus/node_exporter 的其他 Issue

查看 prometheus/node_exporter 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。