metrics

package
v0.131.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: AGPL-3.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

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

Types

type Result

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

func (Result) Errors

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