Container metrics

edit

[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

Learn about key container metrics displayed in the Infrastructure UI:

Docker container metrics
edit

These are the key metrics displayed for Docker containers.

CPU usage metricsedit
Metric Description

CPU Usage (%)

Average CPU for the container.

Field Calculation: average(docker.cpu.total.pct)

Memory metricsedit
Metric Description

Memory Usage (%)

Average memory usage for the container.

Field Calculation: average(docker.memory.usage.pct)

Network metricsedit
Metric Description

Inbound Traffic (RX)

Derivative of the maximum of docker.network.in.bytes scaled to a 1 second rate.

Field Calculation: average(docker.network.inbound.bytes) * 8 / (max(metricset.period, kql='docker.network.inbound.bytes: *') / 1000)

Outbound Traffic (TX)

Derivative of the maximum of docker.network.out.bytes scaled to a 1 second rate.

Field Calculation: average(docker.network.outbound.bytes) * 8 / (max(metricset.period, kql='docker.network.outbound.bytes: *') / 1000)

Disk metricsedit
Metric Description

Disk Read IOPS

Average count of read operations from the device per second.

Field Calculation: counter_rate(max(docker.diskio.read.ops), kql='docker.diskio.read.ops: *')

Disk Write IOPS

Average count of write operations from the device per second.

Field Calculation: counter_rate(max(docker.diskio.write.ops), kql='docker.diskio.write.ops: *')

Kubernetes container metrics
edit

These are the key metrics displayed for Kubernetes (containerd) containers.

CPU usage metricsedit
Metric Description

CPU Usage (%)

Average CPU for the container.

Field Calculation: average(kubernetes.container.cpu.usage.limit.pct)

Memory metricsedit
Metric Description

Memory Usage (%)

Average memory usage for the container.

Field Calculation: average(kubernetes.container.memory.usage.limit.pct)