Skip to content

sysfs: Add support to collect link status for PCIe devices #728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

naoki9911
Copy link

@naoki9911 naoki9911 commented May 29, 2025

The link status of PCIe devices sometimes changes, like link or speed downgrades, and devices disappear. This patch collects PCIe devices' link infromation to detect such failures.

As a first step, this collector exports PCIe devices'

  • Device information (vendor_id, device_id, etc.)
  • Parent PCIe device (e.g. PCIe bridge, PCIe switch)
  • Link status (max_link_{speed|width}, current_link_{speed|width}

https://groups.google.com/g/prometheus-developers/c/0GJTs2OjvCs

The link status of PCIe devices sometimes changes,
like link or speed downgrades, and devices disappear.
This patch collects PCIe devices' link infromation  to detect such failures.

As a first step, this collector exports PCIe devices'
- Device information (vendor_id, device_id, etc.)
- Parent PCIe device (e.g. PCIe bridge, PCIe switch)
- Link status (max_link_{speed|width}, current_link_{speed|width}

Signed-off-by: Naoki MATSUMOTO <m.naoki9911@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant