Why the gnocchi resource list only have generic and image not cpu, memory etc

asked 2017-08-17 01:20:55 -0600

accjiyun gravatar image

updated 2017-08-17 21:27:42 -0600

Thank you for viewing my post. I hope you can help me.

I deployed the ceilometer service on Ocata and use gnocchi as it is database backend. I need to monitor some indexs of OpenStack such as cpu, memory etc. And I had launch an instances, but the ceilometer-collector's log show it not exist.

# openstack server list
+--------------------------------------+-------------------+--------+-------------------------+------------+
| ID                                   | Name              | Status | Networks                | Image Name |
+--------------------------------------+-------------------+--------+-------------------------+------------+
| ac0f56a0-7de1-4433-a682-cb50edd34ff8 | provider-instance | ACTIVE | provider=192.168.32.206 | cirros     |
+--------------------------------------+-------------------+--------+-------------------------+------------+

When i list the gnocchi resource :

# gnocchi resource list

Its output only one resource and that type is generic and image:

# gnocchi resource list
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+--------------+---------------------+
| id               | type    | project_id       | user_id | original_resource_id | started_at       | ended_at | revision_start   | revision_end | creator             |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+--------------+---------------------+
| 83746b69-87e8-4e | generic | None             | None    | 83746b69-87e8-4ee2   | 2017-08-17T11:39 | None     | 2017-08-17T11:39 | None         | :                   |
| e2-b9af-         |         |                  |         | -b9af-39769cc32b75   | :46.861664+00:00 |          | :46.861693+00:00 |              |                     |
| 39769cc32b75     |         |                  |         |                      |                  |          |                  |              |                     |
| 078094a0-d02d-   | image   | c9e5e8bd3e0f4303 | None    | 078094a0-d02d-4e55   | 2017-08-17T12:05 | None     | 2017-08-17T12:05 | None         | aab0cfe190814e00bcd |
| 4e55-a8be-       |         | 93163890a81cbeca |         | -a8be-4cd897b64a2b   | :53.440542+00:00 |          | :53.440708+00:00 |              | 8cf65c3462f58:ff2d0 |
| 4cd897b64a2b     |         |                  |         |                      |                  |          |                  |              | f401c5e4b87935548b8 |
|                  |         |                  |         |                      |                  |          |                  |              | c3a01ad2            |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+--------------+---------------------+

There are some logs and configurations´╝Ü

gnocchi-api -p 8041 &>> /var/log/gnocchi/gnocchi-uwsgi.log

192.168.32.134 - - [18/Aug/2017 09:43:00] "GET /v1/capabilities/ HTTP/1.1" 200 1030
192.168.32.134 - - [18/Aug/2017 09:43:22] "GET /v1/capabilities/ HTTP/1.1" 200 1030
192.168.32.134 - - [18/Aug/2017 09:43:36] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 400 217
192.168.32.134 - - [18/Aug/2017 09:43:36] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 400 217
192.168.32.134 - - [18/Aug/2017 09:43:36] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 400 217
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 400 217
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 400 217
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/resource/instance HTTP/1.1" 400 117
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/resource/instance HTTP/1.1" 400 117
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/resource/instance HTTP/1.1" 400 117
192.168.32.134 - - [18/Aug/2017 09:43:37] "POST /v1/resource/instance HTTP/1.1" 400 117
192.168.32.134 - - [18/Aug/2017 09:43:37] "PATCH /v1/resource/image/078094a0-d02d-4e55-a8be-4cd897b64a2b HTTP/1.1" 200 787
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/image/078094a0-d02d-4e55-a8be-4cd897b64a2b HTTP/1.1" 200 787
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/resource/instance HTTP/1 ...
(more)
edit retag flag offensive close merge delete