collector

package
v0.0.0-...-c1422c1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 8 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 {
	// Describe metrics
	Describe(ch chan<- *prometheus.Desc)

	// Collect metrics
	Collect(client utils.SpectrumClient, ch chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewMdiskCollector

func NewMdiskCollector() (Collector, error)

func NewMdiskgrpCollector

func NewMdiskgrpCollector() (Collector, error)

func NewNodeStatsCollector

func NewNodeStatsCollector() (Collector, error)

func NewSystemCollector

func NewSystemCollector() (Collector, error)

func NewSystemStatsCollector

func NewSystemStatsCollector() (Collector, error)

func NewVolumeCollector

func NewVolumeCollector() (Collector, error)

func NewVolumeCopyCollector

func NewVolumeCopyCollector() (Collector, error)

type SVCCollector

type SVCCollector interface {
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

func NewSVCCollector

func NewSVCCollector(targets []utils.Target, tokenCaches map[string]*utils.AuthToken, tokenMutexes map[string]*sync.Mutex, colCounters map[string]*utils.Counter) (SVCCollector, error)

NewSVCCollector creates a new Spectrum Virtualize Collector.

Jump to

Keyboard shortcuts

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