我正在尝试使用 gnocchi API 来读取指标数据。
所以我用devstack安装了Openstack(我附加了一个配置文件(local.conf))。我想我安装了 ceilometer 和 gnocchi 来收集数据。但是当我尝试在 API 服务器和 CLI 上读取数据时,它不起作用。你能解释一下为什么它不起作用吗?
[[local|localrc]]
HOST_IP=
ADMIN_PASSWORD=
RABBIT_PASSWORD=
SERVICE_PASSWORD=
DATABASE_PASSWORD=
GIT_BASE=https://git.openstack.org/
NOVA_BRANCH=stable/rocky
NOVACLIENT_BRANCH=stable/rocky
KEYSTONE_BRANCH=stable/rocky
KEYSTONECLIENT_BRANCH=stable/rocky
CINDER_BRANCH=stable/rocky
NEUTRON_BRANCH=stable/rocky
GLANCE_BRANCH=stable/rocky
enable_plugin heat https://git.openstack.org/openstack/heat stable/rocky
enable_plugin heat-dashboard https://git.openstack.org/openstack/heat-dashboard stable/rocky
enable_service h-eng h-api h-cfn h-api-cw heat-dashboard
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas stable/rocky
enable_plugin neutron-lbaas-dashboard https://git.openstack.org/openstack/neutron-lbaas-dashboard stable/rocky
enable_plugin octavia https://git.openstack.org/openstack/octavia stable/rocky
enable_service q-svc q-agt q-dhcp q-l3 q-meta
enable_service q-lbaasv2 neutron-lbaas-dashboard
enable_service octavia o-cw o-hk o-hm o-api
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer.git stable/rocky
CEILOMETER_BACKEND=gnocchi
enable_plugin aodh https://git.openstack.org/openstack/aodh stable/rocky
enable_plugin panko https://git.openstack.org/openstack/panko stable/rocky
enable_service c-bak
enable_service swift
命令“openstack metric list”运行良好,但“gnocchi metric list”根本不起作用。带有以下消息。
无法建立到http://localhost:8041/v1/metric的连接?:HTTPConnectionPool(host='localhost', port=8041):最大重试次数超过了 url:/v1/metric(由 NewConnectionError(':无法建立新连接:[Errno 111] Connection denied',))
同样,当我使用 X-Auth-Token 发布https://localhost/metric/v1/metric(这是 API 访问说度量 URL)时,如下 gnocchi api 所说,它不起作用。