mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-12 16:44:18 -08:00
zfs: make zfsPoolStatesName an array
Code does not modify zfsPoolStatesName slice, so make it an array. Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This commit is contained in:
parent
8ea822f67a
commit
b2dfaeb146
|
@ -46,7 +46,7 @@ const (
|
|||
var (
|
||||
errZFSNotAvailable = errors.New("ZFS / ZFS statistics are not available")
|
||||
|
||||
zfsPoolStatesName = []string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"}
|
||||
zfsPoolStatesName = [...]string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"}
|
||||
)
|
||||
|
||||
type zfsCollector struct {
|
||||
|
|
Loading…
Reference in a new issue