metrics

package
v1.134.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToQueryTotals = errors.New("failed to query total CPU count/memory amount")
	ErrFailedToQueryCPU    = errors.New("failed to query CPU usage")
	ErrFailedToQueryMemory = errors.New("failed to query memory usage")
)

Functions

func Run

func Run(ctx context.Context, logger logrus.FieldLogger) chan *Result

func Totals added in v1.77.0

func Totals(ctx context.Context) (uint64, uint64, error)

Types

type Result added in v1.72.0

type Result struct {
	ResourceUtilization *api.ResourceUtilization
	// contains filtered or unexported fields
}

func (Result) Errors added in v1.72.0

func (result Result) Errors() []error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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