Testing the installation

Now that Ceilometer has been installed, we need to be able to test it. In order to do so, we will use the controller node and export the admin credentials.

In order to see the current meters, we will execute the following command:

ceilometer meter-list

This will show the current metered units. Since we do not have anything metered, it will show something like the following screenshot:

Testing the installation

We see the image and the image size at the two meters that are available.

We will now perform some functions and ensure that Ceilometer picks them up. One such simple task is downloading an image from Glance. So, we have one image that we called CirrosTest, let's just download it and ensure that the metering is correct.

We can download the image using the following command:

glance image-download "CirrosTest" > sample.img

This just downloads the image from Glance and stores it locally as a file called sample.img.

Once this is done, we execute the same command one more time and we will see that the download now appears, as shown:

Testing the installation

Now, since this is a metering system, we should be able to see the amount using the following command (you can substitute any meter name to get the statistics of that meter):

ceilometer statistics –m image.download

You should be able to see the following screen:

Testing the installation

We notice that the Max amount shows the value 13200896.0. We can verify the size of the image by executing the ls –l command on the downloaded file:

ls -l sample.img

This will indeed confirm that a file of that size was downloaded. You should see something like the following screenshot:

Testing the installation

If we download the file multiple times, we can verify that the count in the Ceilometer statistics will keep incrementing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset