Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Environement :
- ii ceilometer-agent-central 2015.1.1-0ubuntu2~cloud2 all ceilometer central agent
- ii ceilometer-agent-notification 2015.1.1-0ubuntu2~cloud2 all ceilometer notification agent
- ii ceilometer-alarm-evaluator 2015.1.1-0ubuntu2~cloud2 all Ceilometer alarm evaluator
- ii ceilometer-alarm-notifier 2015.1.1-0ubuntu2~cloud2 all Ceilometer notification agent
- ii ceilometer-api 2015.1.1-0ubuntu2~cloud2 all ceilometer api service
- ii ceilometer-collector 2015.1.1-0ubuntu2~cloud2 all ceilometer collector service
- ii ceilometer-common 2015.1.1-0ubuntu2~cloud2 all ceilometer common files
- ii python-ceilometer 2015.1.1-0ubuntu2~cloud2 all ceilometer python libraries
- ii python-ceilometerclient 1.0.13-0ubuntu1~cloud0 all Client library for Openstack ceilometer server.
- using the patch : https://bugs.launchpad.net/ceilometer/+bug/1489132
- 1 - Lauching an instance at 14:00 on Flavor_1
- 2 - Resizing the instance to Flavor_2 at 14:05
- 3 – Statistics output at 14:34
- 3a – Output for Flavor_1
- ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_1;project_id=my_tenant_id;resource_id=my_resource_id'
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:05:18 | 1.0 | 1.0 | 1.0 | 6.0 | 6 | 301.0 | 2015-09-04T14:00:17 | 2015-09-04T14:05:18 |
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- 301 mean that the instance ran 5min on Flavor_1 before the resize (beetween 14:00 and 14:05, good)
- 3b – Output for Flavor_2
- ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_2; project_id=my_tenant_id; resource_id=my_resource_id'
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | 0 | 2015-09-04T14:06:14 | 2015-09-04T14:34:14 | 1.0 | 1.0 | 1.0 | 29.0 | 29 | 1680.0 | 2015-09-04T14:06:14 | 2015-09-04T14:34:14 |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- 1680.0 mean that the instance ran 28min on Flavor_2 after the resize (beetween 14:05 and 14:34, good)
- 4 – Resizing back the instance to Flavor_1 at 14:35
- 5 – Statistics output at 14:37
- 5a – Output for Flavor_1 (14:37)
- ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_1;project_id=my_tenant_id;resource_id=my_resource_id'
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:36:18 | 1.0 | 1.0 | 1.0 | 7.0 | 7 | 2161.0 | 2015-09-04T14:00:17 | 2015-09-04T14:36:18 |
- +--------+---------------------+---------------------+-----+-----+-----+-----+-------+----------+---------------------+---------------------+
- 2161.0 mean that the instance ran 36min on Flavor_1, the problem is that the instance has only run :
- From 14:00 to 14:05 = 5min
- From 14:35 to 14:37 = 2min
- Expected duration result around 420 sec (7min):
- Actual duration result 2161sec (37min)
- Note that 37min is the total uptime of my Instance since creation, without regarding any flavor
- 5b – Output for Flavor_2 (14:37)
- ceilometer statistics -m instance -q 'metadata.instance_type=Flavor_2; project_id=my_tenant_id; resource_id=my_resource_id'
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | 0 | 2015-09-04T14:06:14 | 2015-09-04T14:35:14 | 1.0 | 1.0 | 1.0 | 30.0 | 30 | 1740.0 | 2015-09-04T14:06:14 | 2015-09-04T14:35:14 |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- 1740.0 mean that the instance ran 29min on Flavor_2 (from 14:05 to 14:34, good)
- 5c – Output for Instance metric (14:37)
- root@telemetry:~# ceilometer statistics -m instance -q 'project_id=my_tenant_id;resource_id=my_resource_id'
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- | 0 | 2015-09-04T14:00:17 | 2015-09-04T14:37:18 | 1.0 | 1.0 | 1.0 | 38.0 | 38 | 2221.0 | 2015-09-04T14:00:17 | 2015-09-04T14:37:18 |
- +--------+---------------------+---------------------+-----+-----+-----+------+-------+----------+---------------------+---------------------+
- 2221.0 mean that the instance ran 37min from creation (beetween 14:00 and 14:37, good)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement