Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchesCollector ¶
type BranchesCollector struct{}
BranchesCollector collects branches metrics, implemented as per the Collector interface.
func (*BranchesCollector) Get ¶
func (c *BranchesCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type Collector ¶
type Collector interface { // Gets metrics and sends to the Prometheus.Metric channel. Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error) }
Collector is the interface a collector has to implement.
func NewBranchesCollector ¶
func NewBranchesCollector() Collector
NewBranchesCollector returns a new BranchesCollector.
func NewCordsCollector ¶
func NewCordsCollector() Collector
NewCordsCollector returns a new CordsCollector.
func NewLinesCollector ¶
func NewLinesCollector() Collector
NewLinesCollector returns a new LinesCollector.
func NewOcpsCollector ¶
func NewOcpsCollector() Collector
NewOcpsCollector returns a new OcpsCollector.
func NewOutletsCollector ¶
func NewOutletsCollector() Collector
NewOutletsCollector returns a new OutletsCollector.
func NewPhasesCollector ¶
func NewPhasesCollector() Collector
NewPhasesCollector returns a new PhasesCollector.
func NewSystemCollector ¶
func NewSystemCollector() Collector
NewSystemCollector returns a new SystemCollector.
func NewUnitsCollector ¶
func NewUnitsCollector() Collector
NewUnitsCollector returns a new UnitsCollector.
type CordsCollector ¶
type CordsCollector struct{}
CordsCollector collects cords metrics, implemented as per the Collector interface.
func (*CordsCollector) Get ¶
func (c *CordsCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type Exporter ¶
Exporter collects all collector metrics, implemented as per the prometheus.Collector interface.
func NewExporter ¶
NewExporter returns a new Exporter.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implemented as per the prometheus.Collector interface.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implemented as per the prometheus.Collector interface.
type LinesCollector ¶
type LinesCollector struct{}
LinesCollector collects lines metrics, implemented as per the Collector interface.
func (*LinesCollector) Get ¶
func (c *LinesCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type OcpsCollector ¶
type OcpsCollector struct{}
OcpsCollector collects ocps metrics, implemented as per the Collector interface.
func (*OcpsCollector) Get ¶
func (c *OcpsCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type OutletsCollector ¶
type OutletsCollector struct{}
OutletsCollector collects outlets metrics, implemented as per the Collector interface.
func (*OutletsCollector) Get ¶
func (c *OutletsCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type PhasesCollector ¶
type PhasesCollector struct{}
PhasesCollector collects phases metrics, implemented as per the Collector interface.
func (*PhasesCollector) Get ¶
func (c *PhasesCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type SystemCollector ¶
type SystemCollector struct{}
SystemCollector collects system metrics, implemented as per the Collector interface.
func (*SystemCollector) Get ¶
func (c *SystemCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.
type UnitsCollector ¶
type UnitsCollector struct{}
UnitsCollector collects units metrics, implemented as per the Collector interface.
func (*UnitsCollector) Get ¶
func (c *UnitsCollector) Get(ch chan<- prometheus.Metric, target, user, pass string) (float64, error)
Get metrics and send to the Prometheus.Metric channel.