2016年8月3日 星期三

[polling, interval] 如何更改 Ceilometer polling 的間隔

如何更改 Ceilometer polling 的間隔

Google doc


Step 1: Change the polling interval
On compute node
vi /etc/ceilometer/pipeline.yaml


ex:
Fig. 1. Change the polling interval time in 5 seconds.


Step 2: Restart the polling service
Command:
Sudo ceilometer-polling restart


ex:
Fig. 2. Restart the polling service.


Verification 1

[Controller Node]
ceilometer sample-list --meter cpu --query resource_id={Your VM ID}


Ex:
ceilometer sample-list --meter cpu --query resource_id=0b8a0d78-e4f6-4a0b-89ae-006d5672556e


Fig. 3. Show the cpu samples collected within  the Timestamp in 5 seconds.

Verification 2

調到每 10 秒抓一次.
再次檢查, 確定!