2017-08-18 02:41:59 |
accjiyun |
bug |
|
|
added bug |
2017-08-18 02:45:35 |
accjiyun |
description |
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.1" 400 117
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:39] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:39] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:39] "PATCH /v1/resource/image/078094a0-d02d-4e55-a8be-4cd897b64a2b HTTP/1.1" 200 787
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/ceph_account HTTP/1.1" 200 61
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/host_network_interface HTTP/1.1" 200 246
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/ipmi HTTP/1.1" 200 53
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/image HTTP/1.1" 200 317
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/host_disk HTTP/1.1" 200 233
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/swift_account HTTP/1.1" 200 62
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/host HTTP/1.1" 200 138
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/stack HTTP/1.1" 200 54
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/identity HTTP/1.1" 200 57
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/network HTTP/1.1" 200 56
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/instance_network_interface HTTP/1.1" 200 206
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/instance HTTP/1.1" 200 493
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/instance_disk HTTP/1.1" 200 193
192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:44:00] "PATCH /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/ceph_account HTTP/1.1" 200 61
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/host_network_interface HTTP/1.1" 200 246
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/ipmi HTTP/1.1" 200 53
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/image HTTP/1.1" 200 317
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/host_disk HTTP/1.1" 200 233
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/swift_account HTTP/1.1" 200 62
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/host HTTP/1.1" 200 138
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/stack HTTP/1.1" 200 54
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/identity HTTP/1.1" 200 57
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/network HTTP/1.1" 200 56
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/instance_network_interface HTTP/1.1" 200 206
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/instance HTTP/1.1" 200 493
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/instance_disk HTTP/1.1" 200 193
192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:49:42] "PATCH /v1/resource_type/volume HTTP/1.1" 200 234
192.168.32.134 - - [18/Aug/2017 09:49:52] "GET /v1/capabilities/ HTTP/1.1" 200 1030
192.168.32.134 - - [18/Aug/2017 09:49:53] "GET /v1/capabilities/ HTTP/1.1" 200 1030
192.168.32.134 - - [18/Aug/2017 09:52:25] "GET /v1/resource/generic HTTP/1.1" 200 1117
> ceilometer/collector.log
2017-08-18 09:43:38.459 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.498 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.502 5478 DEBUG ceilometer.dispatcher.gnocchi [-] 4 measures posted against 4 metrics through 1 resources batch_measures /usr/lib/python2.7/site-packages/ceilometer/dispatcher/gnocchi.py:433
2017-08-18 09:43:38.569 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.597 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:39.343 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
> ceilometer.conf:
[DEFAULT]
meter_dispatchers=gnocchi
event_dispatchers=gnocchi
transport_url = rabbit://openstack:pass123456@controller3
[api]
gnocchi_is_enabled = true
[dispatcher_gnocchi]
filter_service_activity = False
archive_policy = low
filter_project=service
[service_credentials]
auth_type = password
auth_url = http://controller3:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = ceilometer
password = pass123456
interface = internalURL
region_name = RegionOne
> gnocchi.conf
[DEFAULT]
debug = true
verbose = true
log_dir = /var/log/gnocchi
[api]
workers = 4
auth_mode = keystone
middlewares = oslo_middleware.cors.CORS
[indexer]
url = mysql+pymysql://gnocchi:pass123456@controller3/gnocchi?charset=utf8
[keystone_authtoken]
auth_type = password
auth_url = http://controller3:5000/v3
auth_uri = http://controller3:35357/v3/
memcached_servers = controller3:11211
project_domain_name = Default
user_domain_name = Default
project_name = service
username = gnocchi
password = pass123456
interface = internalURL
region_name = RegionOne
[statsd]
host = controller3
resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75
archive_policy_name = low |
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 | r |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
| 83746b69-87e8-4e | generic | None | None | 83746b69-87e8-4ee2 | 2017-08-17T11:39 | None | 2017-08-17T11:39 | N |
| 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 | Ncd |
| 4e55-a8be- | | 93163890a81cbeca | | -a8be-4cd897b64a2b | :53.440542+00:00 | | :53.440708+00:00 | d0 |
| 4cd897b64a2b | | | | | | | | b8 |
| | | | | | | | | |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
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:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
> ceilometer/collector.log
2017-08-18 09:43:38.459 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.498 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.502 5478 DEBUG ceilometer.dispatcher.gnocchi [-] 4 measures posted against 4 metrics through 1 resources batch_measures /usr/lib/python2.7/site-packages/ceilometer/dispatcher/gnocchi.py:433
2017-08-18 09:43:38.569 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.597 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:39.343 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
> ceilometer.conf:
[DEFAULT]
meter_dispatchers=gnocchi
event_dispatchers=gnocchi
transport_url = rabbit://openstack:pass123456@controller3
[api]
gnocchi_is_enabled = true
[dispatcher_gnocchi]
filter_service_activity = False
archive_policy = low
filter_project=service
[service_credentials]
auth_type = password
auth_url = http://controller3:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = ceilometer
password = pass123456
interface = internalURL
region_name = RegionOne
> gnocchi.conf
[DEFAULT]
debug = true
verbose = true
log_dir = /var/log/gnocchi
[api]
workers = 4
auth_mode = keystone
middlewares = oslo_middleware.cors.CORS
[indexer]
url = mysql+pymysql://gnocchi:pass123456@controller3/gnocchi?charset=utf8
[keystone_authtoken]
auth_type = password
auth_url = http://controller3:5000/v3
auth_uri = http://controller3:35357/v3/
memcached_servers = controller3:11211
project_domain_name = Default
user_domain_name = Default
project_name = service
username = gnocchi
password = pass123456
interface = internalURL
region_name = RegionOne
[statsd]
host = controller3
resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75
archive_policy_name = low |
|
2017-08-18 02:47:17 |
accjiyun |
description |
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 | r |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
| 83746b69-87e8-4e | generic | None | None | 83746b69-87e8-4ee2 | 2017-08-17T11:39 | None | 2017-08-17T11:39 | N |
| 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 | Ncd |
| 4e55-a8be- | | 93163890a81cbeca | | -a8be-4cd897b64a2b | :53.440542+00:00 | | :53.440708+00:00 | d0 |
| 4cd897b64a2b | | | | | | | | b8 |
| | | | | | | | | |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
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:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
> ceilometer/collector.log
2017-08-18 09:43:38.459 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.498 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.502 5478 DEBUG ceilometer.dispatcher.gnocchi [-] 4 measures posted against 4 metrics through 1 resources batch_measures /usr/lib/python2.7/site-packages/ceilometer/dispatcher/gnocchi.py:433
2017-08-18 09:43:38.569 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.597 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:39.343 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
> ceilometer.conf:
[DEFAULT]
meter_dispatchers=gnocchi
event_dispatchers=gnocchi
transport_url = rabbit://openstack:pass123456@controller3
[api]
gnocchi_is_enabled = true
[dispatcher_gnocchi]
filter_service_activity = False
archive_policy = low
filter_project=service
[service_credentials]
auth_type = password
auth_url = http://controller3:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = ceilometer
password = pass123456
interface = internalURL
region_name = RegionOne
> gnocchi.conf
[DEFAULT]
debug = true
verbose = true
log_dir = /var/log/gnocchi
[api]
workers = 4
auth_mode = keystone
middlewares = oslo_middleware.cors.CORS
[indexer]
url = mysql+pymysql://gnocchi:pass123456@controller3/gnocchi?charset=utf8
[keystone_authtoken]
auth_type = password
auth_url = http://controller3:5000/v3
auth_uri = http://controller3:35357/v3/
memcached_servers = controller3:11211
project_domain_name = Default
user_domain_name = Default
project_name = service
username = gnocchi
password = pass123456
interface = internalURL
region_name = RegionOne
[statsd]
host = controller3
resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75
archive_policy_name = low |
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 | r |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
| 83746b69-87e8-4e | generic | None | None | 83746b69-87e8-4ee2 | 2017-08-17T11:39 | None | 2017-08-17T11:39 | N |
| 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 | Ncd |
| 4e55-a8be- | | 93163890a81cbeca | | -a8be-4cd897b64a2b | :53.440542+00:00 | | :53.440708+00:00 | d0 |
| 4cd897b64a2b | | | | | | | | b8 |
| | | | | | | | | |
+------------------+---------+------------------+---------+----------------------+------------------+----------+------------------+-----+
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:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "POST /v1/batch/resources/metrics/measures?create_metrics=True HTTP/1.1" 202 4
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
192.168.32.134 - - [18/Aug/2017 09:43:38] "PATCH /v1/resource/instance/ac0f56a0-7de1-4433-a682-cb50edd34ff8 HTTP/1.1" 404 114
> ceilometer/collector.log
2017-08-18 09:43:38.459 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.498 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.502 5478 DEBUG ceilometer.dispatcher.gnocchi [-] 4 measures posted against 4 metrics through 1 resources batch_measures /usr/lib/python2.7/site-packages/ceilometer/dispatcher/gnocchi.py:433
2017-08-18 09:43:38.569 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:38.597 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
2017-08-18 09:43:39.343 5478 ERROR ceilometer.dispatcher.gnocchi [-] Resource ac0f56a0-7de1-4433-a682-cb50edd34ff8 does not exist (HTTP 404)
> ceilometer.conf:
[DEFAULT]
meter_dispatchers=gnocchi
event_dispatchers=gnocchi
transport_url = rabbit://openstack:pass123456@controller3
[api]
gnocchi_is_enabled = true
[dispatcher_gnocchi]
filter_service_activity = False
archive_policy = low
filter_project=service
[service_credentials]
auth_type = password
auth_url = http://controller3:5000/v3
project_domain_name = default
user_domain_name = default
project_name = service
username = ceilometer
password = pass123456
interface = internalURL
region_name = RegionOne
> gnocchi.conf
[DEFAULT]
debug = true
verbose = true
log_dir = /var/log/gnocchi
[api]
workers = 4
auth_mode = keystone
middlewares = oslo_middleware.cors.CORS
[indexer]
url = mysql+pymysql://gnocchi:pass123456@controller3/gnocchi?charset=utf8
[keystone_authtoken]
auth_type = password
auth_url = http://controller3:5000/v3
auth_uri = http://controller3:35357/v3/
memcached_servers = controller3:11211
project_domain_name = Default
user_domain_name = Default
project_name = service
username = gnocchi
password = pass123456
interface = internalURL
region_name = RegionOne
[statsd]
host = controller3
resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75
archive_policy_name = low |
|
2017-08-28 15:57:32 |
gordon chung |
ceilometer: status |
New |
Incomplete |
|
2017-08-29 00:19:45 |
Junghwan Kim |
bug |
|
|
added subscriber Junghwan Kim |
2017-10-03 18:24:46 |
gordon chung |
ceilometer: status |
Incomplete |
Invalid |
|
2018-03-26 02:55:50 |
davidzhubo |
ceilometer: status |
Invalid |
Confirmed |
|
2018-03-26 03:00:42 |
davidzhubo |
ceilometer: assignee |
|
davidzhubo (davidzhubo) |
|
2018-03-26 03:02:23 |
davidzhubo |
ceilometer: assignee |
davidzhubo (davidzhubo) |
|
|