MCPcopy Index your code
hub / github.com/containerd/containerd / Monitor

Method Monitor

core/runtime/monitor.go:23–23  ·  view source on GitHub ↗

Monitor adds the provided container to the monitor. Labels are optional (can be nil) key value pairs to be added to the metrics namespace.

(task Task, labels map[string]string)

Source from the content-addressed store, hash-verified

21 // Monitor adds the provided container to the monitor.
22 // Labels are optional (can be nil) key value pairs to be added to the metrics namespace.
23 Monitor(task Task, labels map[string]string) error
24 // Stop stops and removes the provided container from the monitor
25 Stop(task Task) error
26}

Callers 3

MonitorMethod · 0.65
initFuncFunction · 0.65
CreateMethod · 0.65

Implementers 4

cgroupsMonitorcore/metrics/cgroups/v2/cgroups.go
cgroupsMonitorcore/metrics/cgroups/v1/cgroups.go
noopTaskMonitorcore/runtime/monitor.go
multiTaskMonitorcore/runtime/monitor.go

Calls

no outgoing calls

Tested by

no test coverage detected