Versions in this module Expand all Collapse all v0 v0.3.0 Mar 14, 2022 Changes in this version type UPSCollector + InternalTemperatureCelsius *prometheus.Desc + OutputVolts *prometheus.Desc v0.2.0 Jun 8, 2020 Changes in this version + type ClientFunc func(ctx context.Context) (*apcupsd.Client, error) + type Exporter struct + func New(fn ClientFunc) *Exporter + func (e *Exporter) Collect(ch chan<- prometheus.Metric) + func (e *Exporter) Describe(ch chan<- *prometheus.Desc) + type StatusSource interface + Status func() (*apcupsd.Status, error) + type UPSCollector struct + BatteryChargePercent *prometheus.Desc + BatteryCumulativeTimeOnSecondsTotal *prometheus.Desc + BatteryNominalVolts *prometheus.Desc + BatteryNumberTransfersTotal *prometheus.Desc + BatteryTimeLeftSeconds *prometheus.Desc + BatteryTimeOnSeconds *prometheus.Desc + BatteryVolts *prometheus.Desc + Info *prometheus.Desc + LastSelftestTimeSeconds *prometheus.Desc + LastTransferOffBatteryTimeSeconds *prometheus.Desc + LastTransferOnBatteryTimeSeconds *prometheus.Desc + LineNominalVolts *prometheus.Desc + LineVolts *prometheus.Desc + NominalPowerWatts *prometheus.Desc + UPSLoadPercent *prometheus.Desc + func NewUPSCollector(ss StatusSource) *UPSCollector + func (c *UPSCollector) Collect(ch chan<- prometheus.Metric) + func (c *UPSCollector) Describe(ch chan<- *prometheus.Desc)