metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricsHTTPListenerServer added in v0.7.0

func NewMetricsHTTPListenerServer(addr string) 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) CollectDaemonResourceMetrics added in v0.7.0

func (s *Server) CollectDaemonResourceMetrics(ctx context.Context)

func (*Server) CollectFsMetrics added in v0.5.0

func (s *Server) CollectFsMetrics(ctx context.Context)

func (*Server) CollectInflightMetrics added in v0.6.0

func (s *Server) CollectInflightMetrics(ctx context.Context)

func (*Server) StartCollectMetrics added in v0.5.0

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

type ServerOpt

type ServerOpt func(*Server) error

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