gnocchi client measures aggregation --granularity should support additional formats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi |
Fix Released
|
Undecided
|
Mehdi Abaakouk |
Bug Description
Granularity used in the gnocchi client is displayed in the archive-policy but doesn't match the format needed to retrieve measures.
Example:
(gnocchi) archive-policy list -c name -c definition
+------
| name | definition |
+------
| high | - points: 3600, granularity: 0:00:01, timespan: 1:00:00 |
| | - points: 10080, granularity: 0:01:00, timespan: 7 days, 0:00:00 |
| | - points: 8760, granularity: 1:00:00, timespan: 365 days, 0:00:00 |
| low | - points: 12, granularity: 0:05:00, timespan: 1:00:00 |
| | - points: 24, granularity: 1:00:00, timespan: 1 day, 0:00:00 |
| | - points: 30, granularity: 1 day, 0:00:00, timespan: 30 days, 0:00:00 |
| medium | - points: 1440, granularity: 0:01:00, timespan: 1 day, 0:00:00 |
| | - points: 168, granularity: 1:00:00, timespan: 7 days, 0:00:00 |
| | - points: 365, granularity: 1 day, 0:00:00, timespan: 365 days, 0:00:00 |
+------
(gnocchi) measures aggregation -m 08fb5027-
+------
| timestamp | granularity | value |
+------
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
| 2016-12-
+------
(gnocchi) measures aggregation -m 08fb5027-
granularity must be a float: invalid literal for float(): 0:05:00 (HTTP 400)
Ideally this supports all formats or archival-policy list displays the format accepted by the measures aggregation command.
Changed in gnocchi: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
status: | New → In Progress |
Changed in gnocchi: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/410776 /git.openstack. org/cgit/ openstack/ gnocchi/ commit/ ?id=85a39e37fb6 397edc06b2aa327 a0073ba138032f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 85a39e37fb6397e dc06b2aa327a007 3ba138032f
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Dec 14 15:21:54 2016 +0100
All granularity input should be parsed as timespan
Closes-bug: #1649908 f7eeb80ec3dae98 013175a7aa1
Change-Id: I35279564f93ded