metrics

package
v0.105.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PprofService

type PprofService Service

PprofService https://golang.org/pkg/net/http/pprof/.

type PrometheusService

type PrometheusService Service

PrometheusService https://prometheus.io/docs/guides/go-application.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service serves metrics.

func NewPprofService

func NewPprofService(cfg config.BasicService, log *zap.Logger) *Service

NewPprofService creates a new service for gathering pprof metrics.

func NewPrometheusService

func NewPrometheusService(cfg config.BasicService, log *zap.Logger) *Service

NewPrometheusService creates a new service for gathering prometheus metrics.

func NewService added in v0.100.0

func NewService(name string, httpServers []*http.Server, cfg config.BasicService, log *zap.Logger) *Service

NewService configures logger and returns new service instance.

func (*Service) ShutDown

func (ms *Service) ShutDown()

ShutDown stops the service.

func (*Service) Start

func (ms *Service) Start() error

Start runs http service with the exposed endpoint on the configured port.

Jump to

Keyboard shortcuts

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