我正在尝试使用gnocchi API来读取度量数据。
所以我安装了Openstack和devstack(我附加了一个配置文件(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指标列表‘运行良好,但'gnocchi指标列表’根本不起作用。下面的消息。
无法建立与http://localhost:8041/v1/metric的连接?:HTTPConnectionPool(host='localhost',port=8041):超过了url: /v1/http://localhost:8041/v1/metric的最大重试次数(由NewConnectionError引起(‘:无法建立新连接: Errno 111连接被拒绝’,))
另外,当我发布带有X-Auth-Token的https://localhost/metric/v1/metric (这是API Access的公制URL)时,如下面的gnocchi api所说,它不起作用。
发布于 2019-11-05 18:47:20
gnocci cli正在寻找像http://servername:8041这样端点。您应该按照文档https://docs.openstack.org/ceilometer/rocky/install/install-base-rdo.html中的说明为gnocci服务创建新的端点,还应该确保redis或其他后端服务已启用并处于活动状态。
https://stackoverflow.com/questions/56353943
复制相似问题