metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	DefaultRegisterer() Registerer
	Registerer(path string) Registerer
	Check(ctx context.Context) health.Status
	Run() error
	Stop()
}

func NewMetrics

func NewMetrics(port int, path string, opts ...Option) Metrics

type Option

type Option func(*options)

func WithHealthCheckURL

func WithHealthCheckURL(url string) Option

func WithLogger

func WithLogger(l *zap.Logger) Option

type Registerer

type Registerer interface {
	MustRegister(...prometheus.Collector)
	Unregister(prometheus.Collector) bool
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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