After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 265 of 317

Chapter 12 255 Monitoring instances using Munin and Collectd The health of the underlying infrastructure operating our on-premise cloud solution is important, but of equal importance is to understand the metrics given by the Compute instances themselves. For this, we can get metrics sent from them by using a monitoring tool called Collectd, and we can leverage Munin for an overall view of our running virtual instances. How to do it... To set Munin and Collectd up, carry out the following steps: Munin We can configure Munin to look at more than just the CPU, memory, and disk space of the host, by invoking the libvirt plugin to query values within the running instances on our Compute hosts. 1. The libvirt munin plugin is conveniently provided by the Ubuntu repositories, so we grab these in the usual way: sudo apt-get update sudo apt-get -y install munin-libvirt-plugins 2. Once downloaded, we then configure the munin libvirt plugins on the Compute host: cd /etc/munin/plugins sudo ln -s /usr/share/munin/plugins/libvirt-blkstat sudo ln -s /usr/share/munin/plugins/libvirt-ifstat sudo ln -s /usr/share/munin/plugins/libvirt-cputime sudo ln -s /usr/share/munin/plugins/libvirt-mem 3. With the plugins in place, we now need to configure them. This is done by placing a file in /etc/munin/plugin-conf.d/libvirt, with the following contents: [libvirt*] user root env.address qemu:///system env.tmpfile /var/lib/munin/plugin-state/libvirt www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook