metrics

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool
	Route   string
	Port    uint16
}

func (Config) GetMetricsRoute

func (c Config) GetMetricsRoute() string

type Server

type Server interface {
	Start() <-chan error
	Shutdown(timeout time.Duration) error
}

func NewServerFromConfig

func NewServerFromConfig(cfg Config, mux *http.ServeMux) Server

func StartMetricsServer

func StartMetricsServer(logger logging.Logger, cfg Config, options ...ServerOption) Server

type ServerOption

type ServerOption func(mux *http.ServeMux) *http.ServeMux

func WithProfilingHooks

func WithProfilingHooks() ServerOption

Jump to

Keyboard shortcuts

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