prometheus / prometheus/node_exporter
Please collect data from /sys/firmware/devicetree/base/
Open
Nobody has claimed this yet.
enhancement
platform/Linux
- Dominant language
- Go
- Stars
- 13.8k
- Forks
- 2.7k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Description
Raspberry Pis and other SBCs (like Odroid) expose their device tree in /sys/firmware/devicetree/base/. They contain data like model that expose the hardware model (similar to the node_dmi_info collector).
Proposal: add a devicetree collector that reads:
- /sys/firmware/devicetree/base/name (empty on my systems)
- /sys/firmware/devicetree/base/model (example: Raspberry Pi Zero W Rev 1.1)
- /sys/firmware/devicetree/base/compatible (example: raspberrypi,model-zero-wbrcm,bcm2835)
- /sys/firmware/devicetree/base/serial-number (example: 16 digit hex string)
And expose those data in node_devicetree_info.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing node_dmi_info collector and inspect the /sys/firmware/devicetree/base/ paths listed in the issue. Done means a devicetree collector exposes name, model, compatible, and serial-number data in node_devicetree_info.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100