monitoring

package
v0.0.0-...-9dfb24e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 17 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitoring

type Monitoring struct {
	Handler    *http.ServeMux
	Prometheus *prometheus.Registry
	Metrics    *api.MeterProvider
}

func New

func New(ctx context.Context, log logger.Logger, tracer trace.TracerProvider) (*Monitoring, func(), error)

New - Monitoring endpoints

func (*Monitoring) SetHandler

func (m *Monitoring) SetHandler() (*http.ServeMux, error)

SetHandler - Create a "common" handler for metrics

func (*Monitoring) SetMetrics

func (m *Monitoring) SetMetrics(ctx context.Context) (*api.MeterProvider, error)

SetMetrics - Create a "common" meter provider for metrics

func (*Monitoring) SetPrometheus

func (m *Monitoring) SetPrometheus() error

SetPrometheus - Create a new Prometheus registry

Jump to

Keyboard shortcuts

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