metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBindAddress = ":8080"

DefaultBindAddress sets the default bind address for the metrics listener.

Functions

func NewListener

func NewListener(addr string) (net.Listener, error)

NewListener creates a new TCP listener bound to the given address.

Types

type Server

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

func NewServer

func NewServer(ctx context.Context, opts ...ServerOpt) (*Server, error)

func (*Server) CollectDaemonMetrics

func (s *Server) CollectDaemonMetrics(ctx context.Context) error

type ServerOpt

type ServerOpt func(*Server) error

func WithMetricsFile

func WithMetricsFile(metricsFile string) ServerOpt

func WithProcessManager

func WithProcessManager(pm *manager.Manager) ServerOpt

func WithRootDir

func WithRootDir(rootDir string) ServerOpt

Directories

Path Synopsis
ttl

Jump to

Keyboard shortcuts

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