Skip to content

D2: Disk I/O throughput (read/write bytes-per-second) #14

Description

@LarsLaskowski

Epic: More Metrics

Why

Complements the existing capacity view with activity. SD-card wear and I/O saturation are common Pi pain points that capacity alone does not reveal.

Scope

A delta-based collector over /proc/diskstats (sectors × 512 bytes), per block device, mirroring the network collector's delta/rate approach.

Reuse & touch points

  • New internal/collector/diskio.go + fixtures.
  • Copy the delta/rate pattern from internal/collector/network.go.
  • Keep a per-device history map in collector.go, like disks/network.

API & config impact

New disk_io[] array in the snapshot plus a history map; additive.

Acceptance criteria

  • Two /proc/diskstats fixtures a known interval apart yield the expected read/write bytes-per-second.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions