When querying for meter statistics, the output is the same regardless of the meter supplied.
Example:
vagrant@precise64:/opt/stack/ceilometer$ ceilometer statistics -m instance
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| 0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 | 4351 | 0.0 | 55290000000.0 | 2.25772287345e+12 | 518897465.744 | 8381.0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
vagrant@precise64:/opt/stack/ceilometer$ ceilometer statistics -m cpu_util
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| 0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 | 4351 | 0.0 | 55290000000.0 | 2.25772287345e+12 | 518897465.744 | 8381.0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
Reviewed: https:/ /review. openstack. org/78962 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=b530bc4fb2c 12bc94b34950e45 0c0d63fb77402f
Committed: https:/
Submitter: Jenkins
Branch: master
commit b530bc4fb2c12bc 94b34950e450c0d 63fb77402f
Author: Nejc Saje <email address hidden>
Date: Fri Mar 7 13:47:43 2014 +0000
Fix broken statistics in sqlalchemy
When querying the samples for statistics calculations,
the filtering is done without joining the Sample table.
This patch fixes this.
Closes-Bug: #1289325 d27ac33d5287f76 0bcff08cf91
Change-Id: I45edc974a6c054