prometheus / prometheus/node_exporter

Feature request: expose ioerr_cnt metrics

Open
#2,231 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In Linux, the error counter for block devices can be retrieved from /sys/block/*/device/ioerr_cnt, but the current diskstats controller does not support them.

My use case that uses this counter is to detect if an HDD is broken or not.

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 diskstats controller and its existing disk metrics, then inspect the Linux sysfs path /sys/block/*/device/ioerr_cnt to understand the available counter. The work is done when the exporter exposes this counter for block devices and its output can be verified against the sysfs values.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, linux
Domain
observability, operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.