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
NewStkSSLCollector is a StatusCake SSL Collector
func NewStkTestCollector ¶
NewStkTestCollector is a Status Cake Test Collector
type MasterCollector ¶
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.
Click to show internal directories.
Click to hide internal directories.