776e5c46bf
Address comments from the backport of patch #152626. Change-Id: Ie37a18e500e17b6cf0f6dc7fdcc5a6630b4be341 Closes-Bug: #1405252 backport: juno
62 lines
4.2 KiB
XML
62 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section 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"
|
|
xml:id="ceilometer-verify">
|
|
<title>Verify the Telemetry installation</title>
|
|
<para>This section describes how to verify operation of the Telemetry
|
|
module.</para>
|
|
<procedure>
|
|
<note>
|
|
<para>Perform these steps on the controller node.</para>
|
|
</note>
|
|
<step>
|
|
<para>Source the <literal>admin</literal> credentials to gain access to
|
|
admin-only CLI commands:</para>
|
|
<screen><prompt>$</prompt> <userinput>source admin-openrc.sh</userinput></screen>
|
|
</step>
|
|
<step>
|
|
<para>List available meters:</para>
|
|
<screen><prompt>$</prompt> <userinput>ceilometer meter-list</userinput>
|
|
<computeroutput>+------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
|
| Name | Type | Unit | Resource ID | User ID | Project ID |
|
|
+------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
|
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
+------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
|
|
<note>
|
|
<para>Some meters might not appear until after you successfully launch
|
|
at least one instance.</para>
|
|
</note>
|
|
</step>
|
|
<step>
|
|
<para>Download an image from the Image Service:</para>
|
|
<screen><prompt>$</prompt> <userinput>glance image-download "cirros-0.3.3-x86_64" > cirros.img</userinput></screen>
|
|
</step>
|
|
<step>
|
|
<para>List available meters again to validate detection of the image
|
|
download:</para>
|
|
<screen><prompt>$</prompt> <userinput>ceilometer meter-list</userinput>
|
|
<computeroutput>+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
|
| Name | Type | Unit | Resource ID | User ID | Project ID |
|
|
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
|
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
| image.download | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
| image.serve | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
|
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
|
|
</step>
|
|
<step>
|
|
<para>Retrieve usage statistics from the <literal>image.download</literal>
|
|
meter:</para>
|
|
<screen><prompt>$</prompt> <userinput>ceilometer statistics -m image.download -p 60</userinput>
|
|
<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 | 13167616.0 | 13167616.0 | 13167616.0 | 13167616.0 | 0.0 | 2013-11-18T18:09:05.334000 | 2013-11-18T18:09:05.334000 |
|
|
+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+</computeroutput></screen>
|
|
</step>
|
|
</procedure>
|
|
</section>
|