prometheus / prometheus/node_exporter

ZFS resilvering status metric

Open
#2,458 1 comment 1 reaction 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

Please add metrics for resilvering status reported by zpool status
Example output of zpool status during active resilvering:

pool: vol0
state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Wed Aug 31 11:39:07 2022
        19,3G scanned out of 24,0T at 3,22G/s, 2h6m to go
        2,41G resilvered, 0,08% done
config:

        NAME                                                STATE     READ WRITE CKSUM
        vol0                                                ONLINE       0     0     0
          raidz1-0                                          ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900226  ONLINE       0     0     0  (resilvering)
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900249  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900068  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N803860  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900227  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900252  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900074  ONLINE       0     0     0
            nvme-SAMSUNG_MZQLB7T6HMLA-00007_S4BGNY0N900075  ONLINE       0     0     0

errors: No known data errors

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 by locating the ZFS collector and the code that reads zpool status; use the example output as the input format to support. Define metrics for the resilvering status shown during an active scan, and verify that the exporter exposes them correctly for this output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, prometheus
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.