Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SecondsActive is the number of seconds, since program start // that the heating elemnent has been active. SecondsActive = promauto.NewCounter(prometheus.CounterOpts{ Name: "heater_element_active_seconds", Help: "The total number of seconds the heating element has been active", }) // RelayActivations counts the number of times the relay has activated RelayActivations = promauto.NewCounter(prometheus.CounterOpts{ Name: "heater_element_activations_total", Help: "The number of times the relay has been activated", }) // CurrentTemperature is the current measured temperature in the boiler CurrentTemperature = promauto.NewGauge(prometheus.GaugeOpts{ Name: "boiler_water_temperature_celsius", Help: "The current temperature of the water in the boiler", }) // SetpointTemperature is the desired temperature SetpointTemperature = promauto.NewGauge(prometheus.GaugeOpts{ Name: "setpoint_temperature_celsius", Help: "The current setpoint temperature", }) // SensorFaultCount is the desired temperature SensorFaultCount = promauto.NewCounter(prometheus.CounterOpts{ Name: "sensor_fault_total", Help: "The number of times the sensor has read faulty data", }) )
Functions ¶
func PrometheusMetrics ¶
func PrometheusMetrics(prometheusPort int)
PrometheusMetrics handles the prometheus scrape endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.