metrics

package
v0.0.0-...-449c958 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

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 (*MeasurementCollector) Collect

func (c *MeasurementCollector) Collect(ch chan<- prometheus.Metric)

func (*MeasurementCollector) Describe

func (c *MeasurementCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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