resctrl

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Collector of resctrl for a container.

Manager of resctrl for containers.

Utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup added in v0.41.0

func Setup() error

Types

type Manager added in v0.41.0

type Manager interface {
	Destroy()
	GetCollector(containerName string, getContainerPids func() ([]string, error), numberOfNUMANodes int) (stats.Collector, error)
}

func NewManager

func NewManager(interval time.Duration, setup func() error, vendorID string, inHostNamespace bool) (Manager, error)

type NoopManager added in v0.41.0

type NoopManager struct {
	stats.NoopDestroy
}

func (*NoopManager) GetCollector added in v0.41.0

func (np *NoopManager) GetCollector(_ string, _ func() ([]string, error), _ int) (stats.Collector, error)

Jump to

Keyboard shortcuts

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