collector

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State  = make(map[string]*bool)
	Filter = make(map[string]*string)
)

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Get metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) error

	// Describe metrics
	UpdateDescribe(ch chan<- *prometheus.Desc)
}

Collector is the interface a collector has to implement.

type IbmSpectrumCollector

type IbmSpectrumCollector struct {
	Collectors map[string]Collector
	// contains filtered or unexported fields
}

IbmSpectrumCollector implements the prometheus.Collector interface.

func NewIbmSpectrumCollector

func NewIbmSpectrumCollector(config monitoring.MetricsConfig, logger *zap.Logger,
	spectrumClient spectrumservice.Client) (*IbmSpectrumCollector, error)

NewIbmSpectrumCollector create new collector instance

func (*IbmSpectrumCollector) Collect

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

CollectFromStorage the metrics from IBM Spectrum

func (*IbmSpectrumCollector) Describe

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

Describe all metrics

Jump to

Keyboard shortcuts

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