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()
Click to show internal directories.
Click to hide internal directories.