timestamp format of the sample datas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Low
|
gordon chung |
Bug Description
hi, all
cmd 'ceilometer sample-list ' can list the sample datas include the timestamp field
i found that sometimes the format of timestamp like: 2015-08-11T07:41:43
sometimes it changes like: 2015-08-
but i have no idea which condition can it occur.
stack@ubuntu:~$ ceilometer sample-list -l 1
+------
| ID | Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
| 6916f9e0-
+------
stack@ubuntu:~$ ceilometer sample-list -l 10
+------
| ID | Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
| 940e031e-
Changed in ceilometer: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in ceilometer: | |
assignee: | nobody → venkatamahesh (venkatamaheshkotha) |
Changed in ceilometer: | |
assignee: | venkatamahesh (venkatamaheshkotha) → nobody |
actually it as not a bug, timestamps are converted to a normalize_time before samples stores, please take a look https:/ /github. com/openstack/ ceilometer/ blob/master/ ceilometer/ dispatcher/ database. py#L91
Final view depends on how precise was initial timestamp and we check it in a tests: /github. com/openstack/ ceilometer/ blob/master/ ceilometer/ tests/unit/ dispatcher/ test_db. py#L91 /github. com/openstack/ ceilometer/ blob/master/ ceilometer/ tests/unit/ dispatcher/ test_db. py#L110
https:/
https:/