Documentation
¶
Index ¶
- type Collector
- func NewCallhomeInfoCollector() (Collector, error)
- func NewDriveCollector() (Collector, error)
- func NewEnclosureBatteryCollector() (Collector, error)
- func NewEnclosureCanisterCollector() (Collector, error)
- func NewEnclosureCollector() (Collector, error)
- func NewEnclosurePsuCollector() (Collector, error)
- func NewHostCollector() (Collector, error)
- func NewIPCollector() (Collector, error)
- func NewMdiskCollector() (Collector, error)
- func NewMdiskgrpCollector() (Collector, error)
- func NewNodecanisterCollector() (Collector, error)
- func NewPortfcCollector() (Collector, error)
- type DriveCollector
- type SVCCollector
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 NewDriveCollector ¶
func NewEnclosureCollector ¶
func NewHostCollector ¶
func NewIPCollector ¶
func NewMdiskCollector ¶
func NewMdiskgrpCollector ¶
func NewPortfcCollector ¶
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) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.