prometheus

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("prometheus",
	fx.Provide(NewPrometheus),
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Address string
}

type Prometheus

type Prometheus struct {
	Log *zap.Logger
	// contains filtered or unexported fields
}

func NewPrometheus

func NewPrometheus(config Configuration, log *zap.Logger, lc fx.Lifecycle) *Prometheus

func (*Prometheus) Collect added in v0.4.0

func (p *Prometheus) Collect(ch chan<- prometheus.Metric)

func (*Prometheus) Describe added in v0.4.0

func (p *Prometheus) Describe(ch chan<- *prometheus.Desc)

func (*Prometheus) Gather added in v0.4.0

func (*Prometheus) Register added in v0.4.0

func (p *Prometheus) Register(c prometheus.Collector) error

func (*Prometheus) Unregister added in v0.4.0

func (p *Prometheus) Unregister(c prometheus.Collector) bool

Jump to

Keyboard shortcuts

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