kubernetes

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsWatcherEnabled = false
)

Functions

func ParseContainerIDFromPodStatus

func ParseContainerIDFromPodStatus(containerID string) string

Types

type ObjListWatcher

type ObjListWatcher struct {
	// Lock to synchronize the collector update with the watcher
	// NOTE: This lock is shared with the Collector
	Mx *sync.Mutex

	ResourceKind string

	// NOTE: This map is shared with the Collector
	// ContainerStats holds all container energy and resource usage metrics
	ContainerStats map[string]*stats.ContainerStats
	// contains filtered or unexported fields
}

func NewObjListWatcher

func NewObjListWatcher(bpfSupportedMetrics bpf.SupportedMetrics) (*ObjListWatcher, error)

func (*ObjListWatcher) Run

func (w *ObjListWatcher) Run() error

func (*ObjListWatcher) ShutDownWithDrain added in v0.7.12

func (w *ObjListWatcher) ShutDownWithDrain()

func (*ObjListWatcher) Stop

func (w *ObjListWatcher) Stop()

Jump to

Keyboard shortcuts

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