prometheus

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublisher

func NewPublisher(options PublisherOptions) (smartmeter.Publisher, error)

Types

type PublisherOptions

type PublisherOptions struct {
	Addr string `env:"PROMETHEUS_ADDR" flag:"addr" desc:"Prometheus HTTP server address, set empty to disable"`

	DisableGoCollector bool `env:"DISABLE_GO_COLLECTOR" flag:"disable-go-collector" desc:"Disable Go collector"`
}

Jump to

Keyboard shortcuts

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