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
Click to show internal directories.
Click to hide internal directories.