settingsLogin | Registersettings

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

0 votes

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

This also post on : https://stackoverflow.com/questions/45727824/why-the-gnocchi-resource-list-only-have-generic-and-image-not-cpu-memory-etc

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 | projectid | userid | originalresourceid | startedat | endedat | revisionstart | revisionend | 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/resourcetype/cephaccount HTTP/1.1" 200 61

192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resourcetype/hostnetwork_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/resourcetype/hostdisk HTTP/1.1" 200 233

192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resourcetype/swiftaccount 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/resourcetype/instancenetwork_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/resourcetype/instancedisk 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/resourcetype/cephaccount HTTP/1.1" 200 61

192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resourcetype/hostnetwork_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/resourcetype/hostdisk HTTP/1.1" 200 233

192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resourcetype/swiftaccount 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/resourcetype/instancenetwork_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/resourcetype/instancedisk 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]

gnocchiisenabled = true

[dispatcher_gnocchi]

filterserviceactivity = False

archive_policy = low

filter_project=service

[service_credentials]

auth_type = password

auth_url = http://controller3:5000/v3

projectdomainname = default

userdomainname = 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

projectdomainname = Default

userdomainname = Default

project_name = service

username = gnocchi

password = pass123456

interface = internalURL

region_name = RegionOne

[statsd]

host = controller3

resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75

archivepolicyname = low


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
asked Aug 18, 2017 in openstack by ?_? (120 points)   1 1

1 Response

0 votes

Can you make sure that you have the instance related resource type created
already, run "gnocchi resource-type list"

On Fri, Aug 18, 2017 at 9:42 PM, ? ? accjiyun@outlook.com wrote:

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

This also post on : https://stackoverflow.com/questions/45727824/why-the-
gnocchi-resource-list-only-have-generic-and-image-not-cpu-memory-etc

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 | projectid | userid | originalresourceid | startedat | endedat | revisionstart | revisionend | 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/resourcetype/cephaccount HTTP/1.1" 200 61

192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resourcetype/hostnetwork_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/resourcetype/hostdisk HTTP/1.1" 200 233

192.168.32.134 - - [18/Aug/2017 09:44:00] "GET /v1/resourcetype/swiftaccount 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/resourcetype/instancenetwork_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/resourcetype/instancedisk 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/resourcetype/cephaccount HTTP/1.1" 200 61

192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resourcetype/hostnetwork_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/resourcetype/hostdisk HTTP/1.1" 200 233

192.168.32.134 - - [18/Aug/2017 09:49:42] "GET /v1/resourcetype/swiftaccount 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/resourcetype/instancenetwork_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/resourcetype/instancedisk 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]

gnocchiisenabled = true

[dispatcher_gnocchi]

filterserviceactivity = False

archive_policy = low

filter_project=service

[service_credentials]

auth_type = password

auth_url = http://controller3:5000/v3

projectdomainname = default

userdomainname = 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

projectdomainname = Default

userdomainname = Default

project_name = service

username = gnocchi

password = pass123456

interface = internalURL

region_name = RegionOne

[statsd]

host = controller3

resource_id = 83746b69-87e8-4ee2-b9af-39769cc32b75

archivepolicyname = low


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack

--
Tang Yaguang


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
responded Aug 26, 2017 by Yaguang_Tang (1,180 points)   1 3 4
...