Containerd

Sensor (Data Collection)

Metrics collection

Configuration data

  • Container ID
  • Image
  • Created at
  • Updated at
  • Containerd namespace
  • Labels

Performance metrics

Metric Description Granularity
CPU usage Total, kernel and user usage 10 seconds
CPU throttling Throttling time and count 10 seconds
Memory usage Total, cache and rss 10 seconds
Memory active The amount of anonymous and cache active memory 10 seconds
Memory inactive The amount of anonymous and cache inactive memory 10 seconds

Metrics collection

The Containerd sensor automatically start collecting metrics using ctr metrics. It requires a ctr version higher than 1.2.0. If an older version of ctr that does not provide the metrics command, the sensor will automatically fallback to getting metrics from the Prometheus endpoint. In this case, in order to enable metrics collection, the metrics address needs to be specified in the Containerd configuration file located in /etc/containerd/config.toml. Restart containerd.service afterwards.

[metrics]
  address = "127.0.0.1:1338"