MCPcopy
hub / github.com/containerd/containerd / Metrics

Method Metrics

client/task.go:218–218  ·  view source on GitHub ↗

Metrics returns task metrics for runtime specific metrics The metric types are generic to containerd and change depending on the runtime For the built in Linux runtime, github.com/containerd/cgroups.Metrics are returned in protobuf format

(context.Context)

Source from the content-addressed store, hash-verified

216 // For the built in Linux runtime, github.com/containerd/cgroups.Metrics
217 // are returned in protobuf format
218 Metrics(context.Context) (*types.Metric, error)
219 // Spec returns the current OCI specification for the task
220 Spec(context.Context) (*oci.Spec, error)
221}

Callers 13

TestContainerMetricsFunction · 0.95
MetricsMethod · 0.65
ContainerStatsMethod · 0.65
collectContainerStatsMethod · 0.65
listContainerStatsMethod · 0.65
metrics.goFile · 0.65
TestMetricsFunction · 0.65
MetricsMethod · 0.65

Calls

no outgoing calls

Tested by 3

TestContainerMetricsFunction · 0.76
TestMetricsFunction · 0.52