infiniband: Add node_infiniband_port_info metric with link_layer label

オープン
#3,893 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

prometheus/node_exporter のほかの issue

prometheus/node_exporter の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。