telemetry

package
v0.0.0-...-77f3c19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL