Skip to main content

Virtual Machines

Virtual Machines

Plugin: cgroups.plugin Module: /sys/fs/cgroup

Maintained by Netdata

Overview​

Monitor virtual machine resource utilization — CPU, memory, disk I/O, and network — via Linux cgroups.

This collector is only supported on the following platforms:

  • Linux

This collector supports collecting metrics from multiple instances of this integration, including remote instances.

Default Behavior​

Auto-Detection​

This integration doesn't support auto-detection.

Limits​

The default configuration for this integration does not impose any limits on data collection.

Performance Impact​

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup​

Prerequisites​

No action required.

Configuration​

Options​

There are no configuration options.

via File​

There is no configuration file.

Examples​

There are no configuration examples.

Alerts​

The following alerts are available:

Alert nameOn metricDescription
cgroup_10min_cpu_usage cgroup.cpu_limitaverage cgroup CPU utilization over the last 10 minutes
cgroup_ram_in_use cgroup.mem_usagecgroup memory utilization
cgroup_1m_received_packets_rate cgroup.net_packetsaverage number of packets received by the network interface ${label:device} over the last minute
cgroup_10s_received_packets_storm cgroup.net_packetsratio of average number of received packets for the network interface ${label:device} over the last 10 seconds, compared to the rate over the last minute

Metrics​

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

Per cgroup​

Labels:

LabelDescription
container_nameThe container name or group path if name resolution fails.
imageDocker/Podman container image name.

Metrics:

MetricDescriptionDimensionsUnit
cgroup.cpu_limitCPU Usage within the limitsusedpercentage
cgroup.cpuCPU Usage (100% = 1 core)user, systempercentage
cgroup.cpu_per_coreCPU Usage (100% = 1 core) Per Corea dimension per corepercentage
cgroup.throttledCPU Throttled Runnable Periodsthrottledpercentage
cgroup.throttled_durationCPU Throttled Time Durationdurationms
cgroup.cpu_sharesCPU Time Relative Sharesharesshares
cgroup.memMemory Usagecache, rss, swap, rss_huge, mapped_fileMiB
cgroup.writebackWriteback Memorydirty, writebackMiB
cgroup.mem_activityMemory Activityin, outMiB/s
cgroup.pgfaultsMemory Page Faultspgfault, swapMiB/s
cgroup.mem_usageUsed Memoryram, swapMiB
cgroup.mem_usage_limitUsed RAM within the limitsavailable, usedMiB
cgroup.mem_utilizationMemory Utilizationutilizationpercentage
cgroup.mem_failcntMemory Limit Failuresfailurescount
cgroup.ioI/O Bandwidth (all disks)read, writeKiB/s
cgroup.serviced_opsServiced I/O Operations (all disks)read, writeoperations/s
cgroup.throttle_ioThrottle I/O Bandwidth (all disks)read, writeKiB/s
cgroup.throttle_serviced_opsThrottle Serviced I/O Operations (all disks)read, writeoperations/s
cgroup.queued_opsQueued I/O Operations (all disks)read, writeoperations
cgroup.merged_opsMerged I/O Operations (all disks)read, writeoperations/s
cgroup.cpu_some_pressureCPU some pressuresome10, some60, some300percentage
cgroup.cpu_some_pressure_stall_timeCPU some pressure stall timetimems
cgroup.cpu_full_pressureCPU full pressuresome10, some60, some300percentage
cgroup.cpu_full_pressure_stall_timeCPU full pressure stall timetimems
cgroup.memory_some_pressureMemory some pressuresome10, some60, some300percentage
cgroup.memory_some_pressure_stall_timeMemory some pressure stall timetimems
cgroup.memory_full_pressureMemory full pressuresome10, some60, some300percentage
cgroup.memory_full_pressure_stall_timeMemory full pressure stall timetimems
cgroup.io_some_pressureI/O some pressuresome10, some60, some300percentage
cgroup.io_some_pressure_stall_timeI/O some pressure stall timetimems
cgroup.io_full_pressureI/O some pressuresome10, some60, some300percentage
cgroup.io_full_pressure_stall_timeI/O some pressure stall timetimems
cgroup.pids_currentNumber of processespidspids
cgroup.cachestat_ratioHit ratioratio%
cgroup.cachestat_dirtiesNumber of dirty pagesdirtypage/s
cgroup.cachestat_hitsNumber of accessed fileshithits/s
cgroup.cachestat_missesFiles out of page cachemissmisses/s
cgroup.dc_ratioPercentage of directory lookups resolved by the cacheratio%
cgroup.dc_referenceCount file accessreferencefiles
cgroup.dc_not_cacheFiles not present inside directory cacheslowfiles
cgroup.dc_not_foundFiles not foundmissfiles
cgroup.fd_openNumber of open filescallscalls/s
cgroup.fd_open_errorFails to open filescallscalls/s
cgroup.fd_closeFiles closedcallscalls/s
cgroup.fd_close_errorFails to close filescallscalls/s
cgroup.net_conn_ipv4TCP v4 outbound connectionsconnectionsconnections/s
cgroup.net_conn_ipv6TCP v6 outbound connectionsconnectionsconnections/s
cgroup.net_total_bandwidthBandwidthreceived, sentkilobits/s
cgroup.net_tcp_recvTCP calls to clean up buffercallscalls/s
cgroup.net_tcp_sendTCP calls to sendcallscalls/s
cgroup.net_retransmitTCP retransmitscallscalls/s
cgroup.net_udp_sendUDP calls to sendcallscalls/s
cgroup.net_udp_recvUDP calls to receivecallscalls/s

Per cgroup network device​

Labels:

LabelDescription
container_nameThe container name or group path if name resolution fails.
imageDocker/Podman container image name.
deviceThe name of the host network interface linked to the container's network interface.
container_deviceContainer network interface name.
interface_typeNetwork interface type. Always "virtual" for the containers.

Metrics:

MetricDescriptionDimensionsUnit
cgroup.net_netBandwidthreceived, sentkilobits/s
cgroup.net_packetsPacketsreceived, sent, multicastpps
cgroup.net_errorsInterface Errorsinbound, outbounderrors/s
cgroup.net_dropsInterface Dropsinbound, outbounderrors/s
cgroup.net_fifoInterface FIFO Buffer Errorsreceive, transmiterrors/s
cgroup.net_compressedInterface FIFO Buffer Errorsreceive, sentpps
cgroup.net_eventsNetwork Interface Eventsframes, collisions, carrierevents/s
cgroup.net_operstateInterface Operational Stateup, down, notpresent, lowerlayerdown, testing, dormant, unknownstate
cgroup.net_carrierInterface Physical Link Stateup, downstate
cgroup.net_mtuInterface MTUmtuoctets

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.