Documentation ¶ Index ¶ Variables func Run(ctx context.Context, logger logrus.FieldLogger) chan *Result func Totals(ctx context.Context) (uint64, uint64, error) type Result func (result Result) Errors() []error 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 Source Files ¶ View all Source files metrics.go Directories ¶ Show internal Expand all Path Synopsis source cgroup cgroup/cpu cgroup/memory cgroup/parser cgroup/resolver cgroup/subsystem system Click to show internal directories. Click to hide internal directories.