首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Openstack rocky上使用Gnocchi API

如何在Openstack rocky上使用Gnocchi API
EN

Stack Overflow用户
提问于 2019-05-29 13:55:07
回答 1查看 670关注 0票数 1

我正在尝试使用gnocchi API来读取度量数据。

所以我安装了Openstack和devstack(我附加了一个配置文件(local.conf) )。我想我安装了ceilometer和gnocchi来收集数据。但是当我尝试读取API服务器和CLI上的数据时,它不起作用。你能解释一下为什么它不工作吗?

代码语言:javascript
复制
[[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所说,它不起作用。

EN

回答 1

Stack Overflow用户

发布于 2019-11-05 18:47:20

gnocci cli正在寻找像http://servername:8041这样端点。您应该按照文档https://docs.openstack.org/ceilometer/rocky/install/install-base-rdo.html中的说明为gnocci服务创建新的端点,还应该确保redis或其他后端服务已启用并处于活动状态。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56353943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档