Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct { }
An Exporter is a Prometheus exporter for metrics. It wraps all metrics collectors and provides a single global exporter which can serve metrics.
It implements the exporter.Collector interface in order to register with Prometheus.
func New ¶
func New() *Exporter
New creates a new Exporter which collects metrics by creating a apcupsd client using the input ClientFunc.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect sends the collected metrics from each of the collectors to exporter.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe sends all the descriptors of the collectors included to the provided channel.
Click to show internal directories.
Click to hide internal directories.