Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

devstack->how to collect host CPU metric using ceilometer

installed devstack+ceilometer and enabled all required property but not able to see CPU related metric like compute.node.cpu.frequency ,compute.node.cpu.percent

nova.conf-> compute_monitors = ComputeDriverCPUMonitor notification_driver = nova.openstack.common.notifier.rpc_notifier notification_driver = ceilometer.compute.nova_notifier notification_driver = nova.openstack.common.notifier.rabbit_notifier notification_driver=messagingv2 compute_manager = nova.compute.manager.ComputeManager

ceilometer sample-list -m compute.node.cpu +-------------+------+------+--------+------+-----------+ | Resource ID | Name | Type | Volume | Unit | Timestamp | +-------------+------+------+--------+------+-----------+ +-------------+------+------+--------+------+-----------+

ceilometer meter-list +---------------------------------+------------+-----------+----------------------------------------------+----------------------------------+----------------------------------+ | Name | Type | Unit | Resource ID | User ID | Project ID | +---------------------------------+------------+-----------+----------------------------------------------+----------------------------------+----------------------------------+ | cpu | cumulative | ns | 638becc8-21c3-49ed-b9fc-9d0ca453dba7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | cpu | cumulative | ns | d926a97a-2499-49df-8362-32dbc7900fb7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.allocation | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.allocation | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.capacity | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.capacity | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7 | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.allocation | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-hdd | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.allocation | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-vda | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.allocation | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7-hdd | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.allocation | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7-vda | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.allocation | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7-vdb | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.capacity | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-hdd | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.capacity | gauge | B | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-vda | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.capacity | gauge | B | d926a97a-2499-49df-8362-32dbc7900fb7-hdd | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e | | disk.device.capacity | gauge | B

devstack->how to collect host CPU metric using ceilometer

installed devstack+ceilometer and enabled all required property but not able to see CPU related metric like compute.node.cpu.frequency ,compute.node.cpu.percent

nova.conf-> nova.conf->

compute_monitors = ComputeDriverCPUMonitor
notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifier
notification_driver = nova.openstack.common.notifier.rabbit_notifier
notification_driver=messagingv2
compute_manager = nova.compute.manager.ComputeManager

nova.compute.manager.ComputeManager

ceilometer sample-list -m compute.node.cpu compute.node.cpu

+-------------+------+------+--------+------+-----------+
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+-------------+------+------+--------+------+-----------+
+-------------+------+------+--------+------+-----------+

+-------------+------+------+--------+------+-----------+

ceilometer meter-list meter-list

+---------------------------------+------------+-----------+----------------------------------------------+----------------------------------+----------------------------------+
| Name                            | Type       | Unit      | Resource ID                                  | User ID                          | Project ID                       |
+---------------------------------+------------+-----------+----------------------------------------------+----------------------------------+----------------------------------+
| cpu                             | cumulative | ns        | 638becc8-21c3-49ed-b9fc-9d0ca453dba7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| cpu                             | cumulative | ns        | d926a97a-2499-49df-8362-32dbc7900fb7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.allocation                 | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.allocation                 | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.capacity                   | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.capacity                   | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7         | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.allocation          | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-hdd     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.allocation          | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-vda     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.allocation          | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7-hdd     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.allocation          | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7-vda     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.allocation          | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7-vdb     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.capacity            | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-hdd     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.capacity            | gauge      | B         | 638becc8-21c3-49ed-b9fc-9d0ca453dba7-vda     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.capacity            | gauge      | B         | d926a97a-2499-49df-8362-32dbc7900fb7-hdd     | 6e1cf83ed56e4326bd27e5e008a88ada | 44efa37925344d1089330a9bb3e7c27e |
| disk.device.capacity            | gauge      | B    

B