Viewing Virtual Machine Statistics
Virtual Private Cloud users can view graphs on virtual machine workloads.
To view workload data:
- Open a project from the list under Projects.
- Expand the lower block in the server control panel.
- Open the Statistics tab.
The following metrics are available for each server:
- CPU Usage
- Memory Usage
- Volume Workloads
- Network Interface Workloads
Statistics for all metrics are also available through the REST API. More information can be found in our blog.
VirtIO Drivers
VirtIO drivers are paravirtualization drivers for guest operating systems running in a KVM. They provide direct (paravirtualization) access to virtual machine devices and equipment to avoid slow emulated connections. In the VPC, VirtIO drivers are used for gathering statistics, and in some cases, the guest machines require additional setup.
Please note: Metrics are not collected for disabled machines.
Delays
Metric values are gathered once every five minutes.
Please note that it takes ten minutes to generate the first set of values for network interfaces and volumes. This is because the difference between the first two sets of measurements (at the five and ten minute mark) has to be calculated for these metrics.
Windows Systems
In order for Windows operating systems to work properly in the Virtual Private Cloud, VirtIO drivers have to be installed.
These can be downloaded at: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/.
Linux Systems
Required drivers are available in all modern Linux distros by default. However, if no metrics are gathered for your server, you can add an auto-load kernel module. This can be done in different ways.
For Debian-Based Distros
In the /etc/modules files, add the following lines:
virtio_blk virtio_scsi virtio_balloon virtio_net
For RedHat-Based Distros
In the /etc/rc.modules files, add the following lines:
modprobe virtio modprobe virtio_net modprobe virtio_balloon modprobe virtio_scsi modprobe virtio_blk
These modules will automatically launch when the server restarts.
If you cannot restart your server, you can run the following commands in the terminal:
modprobe virtio modprobe virtio_net modprobe virtio_balloon modprobe virtio_scsi modprobe virtio_blk