Skip to content

Please add "Suspended" as a node_zfs_zpool_state #2421

@Hooloovoo

Description

@Hooloovoo

Hello,

It is great that the node_exporter collects node_zfs_zpool_state. It currently has:
unavail
degraded
faulted
offline
online
removed

var zfsPoolStatesName = []string{"online", "degraded", "faulted", "offline", "removed", "unavail"}

I had a pool that was in the "SUSPENDED" state:
$ zpool status
pool: [pool name]
state: SUSPENDED
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool clear'.
see: http://zfsonlinux.org/msg/ZFS-8000-HC

and so none of the above statuses were triggered (thankfully I also monitor for online != 1). Could you please add this status as well?

Host operating system: output of uname -a

Linux mythbuntu-server 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

n/a -- I am using Grafana agent, but they say:
grafana/agent#1854
that they are importing you directly as an upstream.

Are you running node_exporter in Docker?

No.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions