telemetry

package
v0.0.0-...-266a8ce Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//LightbulbActivations is a counter for the number of times the screen
	// has changed power states
	LightbulbActivations = promauto.NewCounter(prometheus.CounterOpts{
		Name: "occupancyd_lightbulb_activations",
		Help: "The number of times the screen has changed power states",
	})

	//OccupancyActivations is a counter for the number of times the occupancy
	// sensor has changed state
	OccupancyActivations = promauto.NewCounter(prometheus.CounterOpts{
		Name: "occupancyd_occupancy_activations",
		Help: "The number of times the occupancy sensor has changed state",
	})

	//IdleTime is a counter for the number of idle seconds, reported by xgb
	IdleTime = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "occupancyd_idle_seconds",
		Help: "Number of seconds x11 has been idle",
	})
)

Functions

func PrometheusMetricsHandler

func PrometheusMetricsHandler(promPort int)

PrometheusMetricsHandler Turn on promtheus metrics handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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