collector

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 10 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 {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) error
	UpdateConfig(stkAPI *stk.StkAPI) error
}

Collector is the interface a collector has to implement.

func NewStkSSLCollector added in v0.3.0

func NewStkSSLCollector() (Collector, error)

NewStkSSLCollector is a StatusCake SSL Collector

func NewStkTestCollector

func NewStkTestCollector() (Collector, error)

NewStkTestCollector is a Status Cake Test Collector

type MasterCollector

type MasterCollector struct {
	Collectors map[string]Collector
	StkAPI     *stk.StkAPI
}

MasterCollector implements the prometheus.Collector interface.

func NewMasterCollector

func NewMasterCollector(stkAPI *stk.StkAPI, filters ...string) (*MasterCollector, error)

NewMasterCollector creates a new NodeCollector.

func (*MasterCollector) Collect

func (mc *MasterCollector) Collect(ch chan<- prometheus.Metric)

Collect implements required collect function for all promehteus collectors

func (*MasterCollector) Describe

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

Describe essentially writes all descriptors to the prometheus desc channel.

Jump to

Keyboard shortcuts

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