package metrics

import "github.com/containerd/nydus-snapshotter/pkg/metrics"

Index

Functions

func NewMetricsHTTPListenerServer

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

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

func (*Server) CollectFsMetrics

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

func (*Server) CollectInflightMetrics

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

func (*Server) StartCollectMetrics

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

type ServerOpt

type ServerOpt func(*Server) error

func WithProcessManagers

func WithProcessManagers(managers []*manager.Manager) ServerOpt

Source Files

listener.go serve.go

Directories

PathSynopsis
pkg/metrics/collector
pkg/metrics/data
pkg/metrics/registry
pkg/metrics/tool
pkg/metrics/types
pkg/metrics/types/ttl
Version
v0.15.1 (latest)
Published
Jan 26, 2025
Platform
linux/amd64
Imports
15 packages
Last checked
3 days ago

Tools for package owners.