Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
Click to show internal directories.
Click to hide internal directories.