Same metrics are not being listed for two resources of same resource type "INSTANCE"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I have a ceilometer problem. I want bill customers based up on some metrics like vcpus, memory etc... My Ceilometer installation is not working as Expected. Lets consider metrics for an Instance
root@ctrl1:~# openstack metric resource show 89f3d7cd-
rating version 2 is not in supported versions: 1
+------
| Field | Value |
+------
| created_
| created_by_user_id | 4a479a2a8c704d3
| creator | 4a479a2a8c704d3
| ended_at | None |
| id | 89f3d7cd-
| metrics | cpu: 755350f4-
| | disk.allocation: c39afe66-
| | disk.capacity: b6d5e670-
| | disk.ephemeral.
| | disk.read.bytes: cd95bfd7-
| | disk.read.requests: 3b5034de-
| | disk.root.size: d758eb1b-
| | disk.usage: af4eb4aa-
| | disk.write.bytes: b6cefee5-
| | disk.write.
| | memory.resident: 762f9e75-
| | memory.swap.in: e926f3b1-
| | memory.swap.out: 95e1c7a6-
| | memory.usage: c20bc575-
| | memory: 52438356-
| | vcpus: 7f7a960e-
| original_
| project_id | 3e3d4490d2a1426
| revision_end | None |
| revision_start | 2019-01-
| started_at | 2019-01-
| type | instance |
| user_id | bf291d2a764240d
+------
and then an another one
root@ctrl1:~# openstack metric resource show 49e8f9b6-
rating version 2 is not in supported versions: 1
+------
| Field | Value |
+------
| created_
| created_by_user_id | 4a479a2a8c704d3
| creator | 4a479a2a8c704d3
| ended_at | None |
| id | 49e8f9b6-
| metrics | cpu: be495114-
| | disk.allocation: 536f78f1-
| | disk.capacity: b54fa4cc-
| | disk.read.bytes: d4781cc0-
| | disk.read.requests: 5ddb7caf-
| | disk.usage: 5ddf9715-
| | disk.write.bytes: 06156dbe-
| | disk.write.
| | memory.resident: d316c26d-
| original_
| project_id | a1dd449c9ce6434
| revision_end | None |
| revision_start | 2019-01-
| started_at | 2019-01-
| type | instance |
| user_id | 1f7840b022f84ef
+------
The former don't have vcpus, memory etcc. The fun part is both of these instances run on same compute host. Is this behavior is normal ? What else could be wrong ?
It is normal to not get all the metrics corresponding to that resource instantly.
I believe it takes time for the resource to collect the valid metrics corresponding to it.
I suggest you to run the "resource show" command again and check.