Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToFloat ¶
func CelsiusToKelvin ¶
func DeviceLabels ¶
Types ¶
type Metrics ¶
type Metrics struct { Power *prometheus.GaugeVec PowerLimit *prometheus.GaugeVec Current *prometheus.GaugeVec CurrentLimit *prometheus.GaugeVec NeutralCurrent *prometheus.GaugeVec NeutralIxsum *prometheus.GaugeVec NeutralMismatch *prometheus.GaugeVec NeutralValid *prometheus.GaugeVec Voltage *prometheus.GaugeVec VoltageLimit *prometheus.GaugeVec PowerFactor *prometheus.GaugeVec Total *prometheus.CounterVec TotalReturned *prometheus.CounterVec RelativeHumidity *prometheus.GaugeVec Temperature *prometheus.GaugeVec TemperatureDevice *prometheus.GaugeVec Voltmeter *prometheus.GaugeVec RelayOpen *prometheus.GaugeVec RelayOverpowered *prometheus.GaugeVec RelayValid *prometheus.GaugeVec InputState *prometheus.GaugeVec InputEventCount *prometheus.CounterVec InputPercent *prometheus.GaugeVec HasUpdate *prometheus.GaugeVec CloudEnabled *prometheus.GaugeVec CloudConnected *prometheus.GaugeVec WifiConnected *prometheus.GaugeVec WifiSignal *prometheus.GaugeVec DevicePowerVoltage *prometheus.GaugeVec DevicePowerPercentage *prometheus.GaugeVec LightBrightness *prometheus.GaugeVec LightState *prometheus.GaugeVec CoverPosition *prometheus.GaugeVec }
func NewMetrics ¶
func NewMetrics(reg *prometheus.Registry) *Metrics
Click to show internal directories.
Click to hide internal directories.