OpenStack Queens : Ceilometer 利用方法(Cinder)2018/03/11 |
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 +--------------------------------------+----------------------------+---------------------------------- | 70846728-419e-47bf-8b25-829d12edfca6 | instance | 52e02649325e4cf1b903d00cadb8fa... | 6edf4961-70e0-52f0-8723-6ed18d96776a | instance_disk | 52e02649325e4cf1b903d00cadb8fa... | 6b2e6172-3c58-59d6-ac72-0c79ae0ce313 | instance_network_interface | 52e02649325e4cf1b903d00cadb8fa... +--------------------------------------+----------------------------+---------------------------------- # テストとしてボリューム作成 [cent@dlp ~(keystone)]$ openstack volume create --size 10 disk01 # リソース一覧 [cent@dlp ~(keystone)]$ openstack metric resource list +--------------------------------------+----------------------------+--------------------------------- | id | type | project_id +--------------------------------------+----------------------------+--------------------------------- | 70846728-419e-47bf-8b25-829d12edfca6 | instance | 52e02649325e4cf1b903d00cadb8f... | 6edf4961-70e0-52f0-8723-6ed18d96776a | instance_disk | 52e02649325e4cf1b903d00cadb8f... | 6b2e6172-3c58-59d6-ac72-0c79ae0ce313 | instance_network_interface | 52e02649325e4cf1b903d00cadb8f... | 1255e5bf-d8e5-4a4a-84cf-f31fe8add0c0 | volume | 52e02649325e4cf1b903d00cadb8f... +--------------------------------------+----------------------------+--------------------------------- # リソース詳細 [cent@dlp ~(keystone)]$ openstack metric resource show 5f6a6e67-79f9-43ee-a6e2-7b26aa5e8ff6 +-----------------------+-------------------------------------------------------------------+ | Field | Value | +-----------------------+-------------------------------------------------------------------+ | created_by_project_id | b1da1070c8af427886d0202f8bbe414f | | created_by_user_id | 61d8449da0b345f2aecfaf0d13310bd7 | | creator | 61d8449da0b345f2aecfaf0d13310bd7:b1da1070c8af427886d0202f8bbe414f | | ended_at | None | | id | 1255e5bf-d8e5-4a4a-84cf-f31fe8add0c0 | | metrics | snapshot.size: 83e39927-13a4-49c5-b8cb-210121645db0 | | | volume.backup.size: a9d2c239-9e3e-461c-8d16-b30373f82578 | | | volume.size: 7f1299d6-41f6-480e-96af-b0db4a1c725c | | | volume.snapshot.size: b018fbcb-b0ed-4d31-8f85-43de821b1e45 | | | volume: 93489801-bfa0-4979-a018-e40ca09682e0 | | original_resource_id | 1255e5bf-d8e5-4a4a-84cf-f31fe8add0c0 | | project_id | 52e02649325e4cf1b903d00cadb8fad2 | | revision_end | None | | revision_start | 2018-03-12T07:43:58.237192+00:00 | | started_at | 2018-03-12T07:43:58.237151+00:00 | | type | volume | | user_id | 3fc6c62eb5aa440aaa1eaf745faa35d6 | +-----------------------+-------------------------------------------------------------------+ # ボリューム サイズ データ [cent@dlp ~(keystone)]$ openstack metric measures show 5f28af63-beb8-4564-acd3-8acd243531f7 +---------------------------+-------------+-------+ | timestamp | granularity | value | +---------------------------+-------------+-------+ | 2018-03-12T16:40:00+09:00 | 300.0 | 10.0 | +---------------------------+-------------+-------+ |
Sponsored Link |
|