OpenStack Zed : How to use Ceilometer (Cinder)2022/10/11 |
This is how to use OpenStack Telemetry Service (Ceilometer) for Cinder service.
This example is based on the environment like follows.
------------+-----------------------------+-----------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] | | (Control Node) | | (Network Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached Nginx | | Neutron Server | | Nova Compute | | Keystone httpd | | OVN-Northd | | Open vSwitch | | Glance Nova API | | Nginx iSCSI Target | | OVN Metadata Agent | | Cinder API | | Cinder Volume | | OVN-Controller | | | | Gnocchi httpd | | Ceilometer Compute | | | | Ceilometer Central | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Change settings for Cinder service to enable Telemetry data collection like follows. Change on all Nodes Cinder services are running. |
root@dlp ~(keystone)#
vi /etc/cinder/cinder.conf # add to the end [oslo_messaging_notifications] driver = messagingv2 transport_url = rabbit://openstack:password@dlp.srv.world systemctl restart apache2 cinder-scheduler |
[2] | It's some examples to display metrics and meters. |
# display resources ubuntu@dlp ~(keystone)$ openstack metric resource list +--------------------------------------+----------------------------+---------------------------------- | id | type | project_id +--------------------------------------+----------------------------+---------------------------------- | a456ee32-b105-4c5e-8eae-ddccb48f913e | instance | 4dd1e1f6bac441ff9c77002c3ab4c58a | dff4e871-53dc-5531-a1f2-3da5e7f69191 | instance_network_interface | 4dd1e1f6bac441ff9c77002c3ab4c58a | d90cfa81-9edd-51cb-8521-ac01203c3797 | instance_disk | 4dd1e1f6bac441ff9c77002c3ab4c58a +--------------------------------------+----------------------------+---------------------------------- # test to create a volume ubuntu@dlp ~(keystone)$ openstack volume create --size 10 disk01 # display resources ubuntu@dlp ~(keystone)$ openstack metric resource list +--------------------------------------+----------------------------+---------------------------------- | id | type | project_id +--------------------------------------+----------------------------+---------------------------------- | a456ee32-b105-4c5e-8eae-ddccb48f913e | instance | 4dd1e1f6bac441ff9c77002c3ab4c58a | dff4e871-53dc-5531-a1f2-3da5e7f69191 | instance_network_interface | 4dd1e1f6bac441ff9c77002c3ab4c58a | d90cfa81-9edd-51cb-8521-ac01203c3797 | instance_disk | 4dd1e1f6bac441ff9c77002c3ab4c58a | 303c417d-095c-4d30-a785-8831993d17e3 | volume | 4dd1e1f6bac441ff9c77002c3ab4c58a +--------------------------------------+----------------------------+---------------------------------- # details of [volume] resource ubuntu@dlp ~(keystone)$ openstack metric resource show 303c417d-095c-4d30-a785-8831993d17e3 +-----------------------+-------------------------------------------------------------------+ | Field | Value | +-----------------------+-------------------------------------------------------------------+ | created_by_project_id | ee51c09c765e4a4d958c2bcc4dbb5665 | | created_by_user_id | 1070f194127a4a52aca630dab3365662 | | creator | 1070f194127a4a52aca630dab3365662:ee51c09c765e4a4d958c2bcc4dbb5665 | | ended_at | None | | id | 303c417d-095c-4d30-a785-8831993d17e3 | | metrics | volume.size: 6785e117-fef4-4b66-8f67-e852cf4f9890 | | original_resource_id | 303c417d-095c-4d30-a785-8831993d17e3 | | project_id | 4dd1e1f6bac441ff9c77002c3ab4c58a | | revision_end | None | | revision_start | 2022-10-11T00:50:24.721777+00:00 | | started_at | 2022-10-11T00:50:24.721772+00:00 | | type | volume | | user_id | 9345b7f4de21427abf31ad308cf952f8 | +-----------------------+-------------------------------------------------------------------+ # display volume size data ubuntu@dlp ~(keystone)$ openstack metric measures show 6785e117-fef4-4b66-8f67-e852cf4f9890 +---------------------------+-------------+-------+ | timestamp | granularity | value | +---------------------------+-------------+-------+ | 2022-10-11T00:50:00+00:00 | 300.0 | 10.0 | +---------------------------+-------------+-------+ |
Sponsored Link |
|