我正在尝试使用gnocchi API读取指标数据。
所以我用devstack安装了Openstack(我附加了一个配置文件(local.conf))。我想我已经安装了云高仪和面gno来收集数据。但是,当我尝试在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”效果很好, 但是“尼奥基指标列表”根本不起作用。 并显示以下消息。
无法建立与http://localhost:8041/v1/metric的连接?:HTTPConnectionPool(host ='localhost',端口= 8041):url:/ v1 / metric超过了最大重试次数(由NewConnectionError(':导致无法建立新的连接:[Errno 111]连接被拒绝',))
当我用X-Auth-Token发布https://localhost/metric/v1/metric(API访问说度量URL)时,也遵循gnocchi api的说法,它不起作用。
答案 0 :(得分:0)
这是因为gnocci cli正在寻找诸如http://servername:8041之类的端点。 您应该像文档https://docs.openstack.org/ceilometer/rocky/install/install-base-rdo.html中那样为gnocci服务创建新的端点。 另外,您还应确保Redis或其他后端服务已启用并处于活动状态