Containerd

Sensor (Data Collection)

Tracked Configuration

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

Metrics

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

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 is installed, 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"