prometheus / prometheus/node_exporter

[FR] New module for `sysfs-block`

Open
#1,601 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
13.8k
Forks
2.7k
Avg merge
1d 23h
Merged PRs (30d)
8

Description

As per our chat, sysfs-block would be useful as an optional module to learn more about the underlying block devices.

Documentation at https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-block

/sys/block/<disk>/queue/logical_block_size is a hard requirement as the defintion of "block" in this sysfs and for Linux as a whole comes from there

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Linux sysfs-block ABI documentation and the /sys/block/<disk>/queue/logical_block_size path described in the issue. Trace how node_exporter implements its existing optional modules and their tests, then define completion as a working sysfs-block module that exposes the requested block-device information while treating logical_block_size as required.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, linux
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.