OpenStack Train : Ceilometer 利用方法(Cinder)2019/10/29 |
OpenStack Telemetry Service (Ceilometer) の利用方法です。
当例では以下のような環境を例に Ceilometer サービスをインストールしています。
------------+---------------------------+---------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ Control Node ] | | [ Storage Node ] | | [ Compute Node ] | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached httpd | | L2 Agent | | Nova Compute | | Keystone Glance | | L3 Agent | | Open vSwitch | | Nova API Cinder API | | Metadata Agent | | L2 Agent | | Neutron Server | | Cinder Volume | | Ceilometer Compute | | Metadata Agent | | Heat API | | | | Gnocchi | | Heat Engine | | | | Ceilometer Central | | | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Block Storage サービスの各種データ収集を有効にするには、Cinder を以下のように設定します。 Cinder 関連サービスが稼働する全ノードで設定変更します。 |
[root@dlp ~(keystone)]#
vi /etc/cinder/cinder.conf # 最終行へ追記 [oslo_messaging_notifications] driver = messagingv2 transport_url = rabbit://openstack:password@10.0.0.30 systemctl restart openstack-cinder-api openstack-cinder-scheduler |
[2] | 任意のユーザーでボリュームを作成した場合に収集されるデータの表示例です。 |
# リソース一覧 [cent@dlp ~(keystone)]$ openstack metric resource list +--------------------------------------+----------------------------+---------------------------------- | id | type | project_id +--------------------------------------+----------------------------+---------------------------------- | b3c21241-2800-4109-831b-6fd69d20ecf8 | instance | 67b2b71cee384d69939e6b3963e0b... | d54dd550-9c14-4cf2-a2d6-ab14f888154a | instance | 67b2b71cee384d69939e6b3963e0b... | 43264c22-f988-5ea1-be0a-3b9ff866bf42 | instance_disk | 67b2b71cee384d69939e6b3963e0b... | 5709365d-ea09-55b4-b95b-eda98ea55cf3 | instance_network_interface | 67b2b71cee384d69939e6b3963e0b... +--------------------------------------+----------------------------+---------------------------------- # テストとしてボリューム作成 [cent@dlp ~(keystone)]$ openstack volume create --size 10 disk01 # リソース一覧 [cent@dlp ~(keystone)]$ openstack metric resource list +--------------------------------------+----------------------------+----------------------------------+-------------- | id | type | project_id | user_id +--------------------------------------+----------------------------+----------------------------------+-------------- | aced428a-2d16-4679-9798-50e69c7aaf1d | instance | caab6ec580994e6481cd104b9d210f3f | b5dd128c2f... | 549a0c66-9dd0-5356-90c8-c742f46d46ca | instance_network_interface | caab6ec580994e6481cd104b9d210f3f | b5dd128c2f... | 291bfeb0-05f2-5918-8a0d-be2e6fdc0f6f | instance_disk | caab6ec580994e6481cd104b9d210f3f | b5dd128c2f... | a2e7b8cf-003d-4431-a4cc-c898169645d6 | instance | caab6ec580994e6481cd104b9d210f3f | b5dd128c2f... | 049d16c9-5e7b-47f0-ba5d-c336d4326834 | volume | 67b2b71cee384d69939e6b3963e0b2db | 14ad73cc98... +--------------------------------------+----------------------------+----------------------------------+-------------- # リソース詳細 [cent@dlp ~(keystone)]$ openstack metric resource show 049d16c9-5e7b-47f0-ba5d-c336d4326834 +-----------------------+-------------------------------------------------------------------+ | Field | Value | +-----------------------+-------------------------------------------------------------------+ | created_by_project_id | 2b9c4eda462e40a4a3d03b0a38f12bf1 | | created_by_user_id | 30440c39a3d0472c94e30fbf13ee91a2 | | creator | 30440c39a3d0472c94e30fbf13ee91a2:2b9c4eda462e40a4a3d03b0a38f12bf1 | | ended_at | None | | id | 049d16c9-5e7b-47f0-ba5d-c336d4326834 | | metrics | volume.size: b70f1492-91fd-4c90-a891-64ada782a837 | | original_resource_id | 049d16c9-5e7b-47f0-ba5d-c336d4326834 | | project_id | 67b2b71cee384d69939e6b3963e0b2db | | revision_end | None | | revision_start | 2019-10-29T02:20:29.423826+00:00 | | started_at | 2019-10-29T02:20:29.423813+00:00 | | type | volume | | user_id | 14ad73cc98744e01a51886e13d541013 | +-----------------------+-------------------------------------------------------------------+ # ボリューム サイズ データ [cent@dlp ~(keystone)]$ openstack metric measures show b70f1492-91fd-4c90-a891-64ada782a837 +---------------------------+-------------+-------+ | timestamp | granularity | value | +---------------------------+-------------+-------+ | 2019-10-29T11:20:00+09:00 | 300.0 | 10.0 | +---------------------------+-------------+-------+ |
Sponsored Link |
|