These graphs are generated using RRDTool on statistics aggregated from collectd and the libvirt plugin for a specific VM instance that is, or once was, running on an OpenStack compute node.
As the OpenStack compute node is the host to the VM's, each node will need to have collectd, libvirt and an instance of Roadrunner enabled to perform the data collection, graph generation and graph hosting.
1. Install collectd & enable libvirt plugin:`sudo apt-get update && sudo apt-get install collectd -y`
`(cat | sudo tee -a /etc/collectd/collectd.conf) << EOF`
`LoadPlugin libvirt`
`<Plugin libvirt>`
` Connection "qemu:///system"`
` RefreshInterval 60`
` HostnameFormat name`
`</Plugin>`
`EOF`
`sudo service collectd stop ; sudo service collectd start`
-
Install node.js from source
sudo apt-get update && sudo apt-get install build-essential -y
wget http://nodejs.org/dist/v0.8.11/node-v0.8.11.tar.gz
tar xzvf node*.tar.gz
cd node*./configure
make -j 4
sudo make install -
Install node.js dependencies
cd roadrunner
npm install
`cd roadrunner`
`node server.js`
-
Pull collectd + libvirt graphs via API
wget <SERVER_IP>:1337/instances/instance-<INSTANCE_ID>.tar.gz