collector_s

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: 9 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 NewCallhomeInfoCollector

func NewCallhomeInfoCollector() (Collector, error)

func NewDriveCollector

func NewDriveCollector() (Collector, error)

func NewEnclosureBatteryCollector

func NewEnclosureBatteryCollector() (Collector, error)

func NewEnclosureCanisterCollector

func NewEnclosureCanisterCollector() (Collector, error)

func NewEnclosureCollector

func NewEnclosureCollector() (Collector, error)

func NewEnclosurePsuCollector

func NewEnclosurePsuCollector() (Collector, error)

func NewHostCollector

func NewHostCollector() (Collector, error)

func NewIPCollector

func NewIPCollector() (Collector, error)

func NewMdiskCollector

func NewMdiskCollector() (Collector, error)

func NewMdiskgrpCollector

func NewMdiskgrpCollector() (Collector, error)

func NewNodecanisterCollector

func NewNodecanisterCollector() (Collector, error)

func NewPortfcCollector

func NewPortfcCollector() (Collector, error)

type DriveCollector

type DriveCollector struct {
}

driveCollector collects drive setting metrics

func (*DriveCollector) Collect

func (c *DriveCollector) Collect(sClient utils.SpectrumClient, ch chan<- prometheus.Metric) error

Collect collects metrics from Spectrum Virtualize Restful API

func (*DriveCollector) Describe

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

Describe describes the metrics

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