Documentation ¶
Overview ¶
Package metrics implements a server which displays only read-only monitoring data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Address string `internal:"true"` TLSKey string TLSCert string ClientCA string }
Config defines configuration for metrics server.
type Server ¶
type Server struct { *debug.PrometheusEndpoint // contains filtered or unexported fields }
Server provides endpoints for debugging.
func NewServer ¶
func NewServer(log *zap.Logger, listener net.Listener, registry *monkit.Registry, config Config) (*Server, error)
NewServer returns a new debug.Server.
Click to show internal directories.
Click to hide internal directories.