Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analytics ¶
Analytics keeps the collector info
func NewCollectorAnalytics ¶
NewCollectorAnalytics return the CollectorAnalytics object
func (*Analytics) InitCollectorsUpdater ¶
func (ca *Analytics) InitCollectorsUpdater()
InitCollectorsUpdater start the paralel auto update for each collector
func (*Analytics) InitMetrics ¶
InitMetrics initialize a list of metrics names and return error if fails.
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Update(ch chan<- prometheus.Metric) error }
Collector is the interface a collector has to implement.
type CollectorMaster ¶
CollectorMaster implements the prometheus.Collector interface.
func NewCollectorMaster ¶
func NewCollectorMaster(azionCli *azion.Client, metrics ...string) (*CollectorMaster, error)
NewCollectorMaster creates a new NodeCollector.
func (*CollectorMaster) Collect ¶
func (cm *CollectorMaster) Collect(ch chan<- prometheus.Metric)
Collect implements required collect function for all promehteus collectors
func (*CollectorMaster) Describe ¶
func (cm *CollectorMaster) Describe(ch chan<- *prometheus.Desc)
Describe is a Prometheus implementation to be called by collector. It essentially writes all descriptors to the prometheus desc channel.
Click to show internal directories.
Click to hide internal directories.