Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HomeInfo = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "tibber_home_info", Help: "Home info", }, []string{ "home_id", "name", "address1", "address2", "address3", "postal_code", "city", "country", "latitude", "longitude", "timezone", "currency", }) GridInfo = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "tibber_grid_info", Help: "Grid info", }, []string{ "home_id", "grid_company", "price_area_code", }) )
Functions ¶
This section is empty.
Types ¶
type HomeCollector ¶
type HomeCollector struct {
// contains filtered or unexported fields
}
func NewHomeCollector ¶
func NewHomeCollector(home *home.Home) *HomeCollector
func (*HomeCollector) Collect ¶
func (c *HomeCollector) Collect(ch chan<- prometheus.Metric)
func (*HomeCollector) Describe ¶
func (c *HomeCollector) Describe(ch chan<- *prometheus.Desc)
type MeasurementCollector ¶
type MeasurementCollector struct {
// contains filtered or unexported fields
}
func NewMeasurementCollector ¶
func NewMeasurementCollector(homeId string, m *tibber.LiveMeasurement, tv *tibber.TimestampedValues, g *home.GaugeValues) *MeasurementCollector
func (*MeasurementCollector) Collect ¶
func (c *MeasurementCollector) Collect(ch chan<- prometheus.Metric)
func (*MeasurementCollector) Describe ¶
func (c *MeasurementCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.