Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IsWatcherEnabled = false
)
Functions ¶
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()
Click to show internal directories.
Click to hide internal directories.