Skip to content

widget: add ZFS pool status API and dashboard widget #10833

Description

@TuEye

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used:
  • Extent of AI involvement:

Is your feature request related to a problem? Please describe.

Currently the dashboard has no widget to show the status of ZFS pools. Additionally, there is also no API endpoint to fetch this information. For monitoring purposes it would be useful to include both: the widget as an easy way to see if a ZFS pool is healthy, and the API endpoint for this widget and external monitoring.

Describe the solution you like

Add a simple ZFS status with "zpool status -j --json-int" and expose it through the diagnostics API, similar to other system information such as "system_disk". Then the ZFS widget can use this endpoint to show the following information:

  • pool health/state
  • number of errors in the pool
  • the date of the last scrub or resilver

Describe alternatives you considered

External ZFS monitoring with Zabbix or node_exporter is already possible. But until now there is no way to show this information on the dashboard.

Additional context

I've already been working on an implementation and will be opening a pull request shortly.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions