collector

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// contains filtered or unexported methods
}

type State

type State struct {
	Enabled *bool
	// contains filtered or unexported fields
}

type ZFS added in v1.0.0

type ZFS struct {
	Pools      []string
	Collectors map[string]State
	// contains filtered or unexported fields
}

ZFS collector

func NewZFS added in v1.0.0

func NewZFS(config ZFSConfig) (*ZFS, error)

NewZFS instantiates a ZFS collector with the provided ZFSConfig

func (*ZFS) Collect added in v1.0.0

func (c *ZFS) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (*ZFS) Describe added in v1.0.0

func (c *ZFS) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

type ZFSConfig added in v1.0.0

type ZFSConfig struct {
	Deadline time.Duration
	Pools    []string
	Excludes []string
	Logger   log.Logger
}

ZFSConfig configures a ZFS collector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL