This plugin keeps track of guest virtual machines on your server. The following metrics are monitored.

Virtual Machine metrics

- Disk read (bytes)
- Disk write (bytes)
- Disk read (requests)
- Disk write (requests)
- Networking out (bytes)
- Networking in (bytes)
- CPU Usage
- Memory Usage
- Memory min guaranteed
- Memory hard limit
- Memory soft limit

Plugin dependancies

apt-get install python-libxml2 libvirt-dev

This plugin needs the libirt-python plugin, you can install this by running pip install libvirt-python.

Testing the plugin

Run sudo -u nixstats nixstatsagent test vms to check if it's returning any data.

Enable the plugin

Open /etc/nixstats.ini and append the following lines at the end of the file.

enabled = yes

Restart the plugin by running service nixstatsagent restart

Creating charts

Click on the Metrics link on the top menu, now select "vms" as metric type and cpu as metric, choose the servers you would like to graph and save it to your dashboard.
Was this article helpful?
Thank you!