Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.