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

Method Metrics

plugins/sandbox/controller.go:326–337  ·  view source on GitHub ↗
(ctx context.Context, sandboxID string)

Source from the content-addressed store, hash-verified

324}
325
326func (c *controllerLocal) Metrics(ctx context.Context, sandboxID string) (*types.Metric, error) {
327 sb, err := c.getSandbox(ctx, sandboxID)
328 if err != nil {
329 return nil, err
330 }
331 req := &runtimeAPI.SandboxMetricsRequest{SandboxID: sandboxID}
332 resp, err := sb.SandboxMetrics(ctx, req)
333 if err != nil {
334 return nil, err
335 }
336 return resp.Metrics, nil
337}
338
339func (c *controllerLocal) Update(
340 ctx context.Context,

Callers

nothing calls this directly

Calls 2

getSandboxMethod · 0.95
SandboxMetricsMethod · 0.65

Tested by

no test coverage detected