openstack-manuals/doc/install-guide/section_ceilometer-verify.xml
Chandan kumar 56ae73a8f2 Change the name of Metering to new name Telemetry in install guide.
backport: havana
Change-Id: I45b9394f22e5dd630a505acd30685bb33dbb60fd
2013-11-28 20:57:58 +05:30

50 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="ceilometer-verify" xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<title>Verify the Telemetry Service installation</title>
<para>To test the Telemetry Service installation, download an image from the
Image Service, and use the Telemetry Service to display usage statistics.</para>
<procedure>
<step>
<para>Use the <literal>ceilometer meter-list</literal> command to test
the access to the Telemetry Service:</para>
<screen><prompt>$</prompt> <userinput>ceilometer meter-list</userinput></screen>
<screen><computeroutput>+------------+-------+-------+--------------------------------------+---------+----------------------------------+
| Name | Type | Unit | Resource ID | User ID | Project ID |
+------------+-------+-------+--------------------------------------+---------+----------------------------------+
| image | gauge | image | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
| image.size | gauge | B | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
+------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
</step>
<step>
<para>Download an image from the Image Service:</para>
<screen><prompt>$</prompt> <userinput>glance image-download "CirrOS 0.3.1" > cirros.img</userinput></screen>
</step>
<step>
<para>Call the <literal>ceilometer meter-list</literal> command again to
validate that the download has been detected and stored by the Telemetry
Service:</para>
<screen><prompt>$</prompt> <userinput>ceilometer meter-list</userinput></screen>
<screen><computeroutput>+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
| Name | Type | Unit | Resource ID | User ID | Project ID |
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
| image | gauge | image | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
| image.download | delta | B | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
| image.serve | delta | B | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
| image.size | gauge | B | 9e5c2bee-0373-414c-b4af-b91b0246ad3b | None | e66d97ac1b704897853412fc8450f7b9 |
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
</step>
<step>
<para>You can now get usage statistics for the various meters:</para>
<screen><prompt>$</prompt> <userinput>ceilometer statistics -m image.download -p 60</userinput></screen>
<screen><computeroutput>+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+
| 60 | 2013-11-18T18:08:50 | 2013-11-18T18:09:50 | 1 | 13147648.0 | 13147648.0 | 13147648.0 | 13147648.0 | 0.0 | 2013-11-18T18:09:05.334000 | 2013-11-18T18:09:05.334000 |
+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+</computeroutput></screen>
</step>
</procedure>
</section>