prommetric

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TempGauge = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "temperature_celsius",
		Help: "The temperature of the hen house in Celsius.",
	})

	HumGauge = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "humidity_percent",
		Help: "The humidity of the hen house in percent.",
	})
)

Functions

func RegisterGauges added in v1.0.3

func RegisterGauges()

Types

type PromMeasure

type PromMeasure struct {
	Temperature float64 `json:"temperature"`
	Humidity    float64 `json:"humidity"`
}

func (PromMeasure) SetTempAndHum

func (m PromMeasure) SetTempAndHum()

Jump to

Keyboard shortcuts

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