disk

package
v0.0.0-...-a1d7b1b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskCollector

type DiskCollector struct {
	// contains filtered or unexported fields
}

DiskCollector holds disk statistics

func New

func New() (*DiskCollector, error)

New returns snap-plugin-collector-disk instance

func (*DiskCollector) CollectMetrics

func (dc *DiskCollector) CollectMetrics(mts []snap.Metric) ([]snap.Metric, error)

CollectMetrics retrieves disk stats values for given metrics

func (*DiskCollector) GetMetricTypes

func (dc *DiskCollector) GetMetricTypes(cfg snap.Config) ([]snap.Metric, error)

GetMetricTypes returns list of exposed disk stats metrics

Jump to

Keyboard shortcuts

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