【问题标题】:How to use Gnocchi API on Openstack rocky如何在 Openstack rocky 上使用 Gnocchi API
【发布时间】:2019-05-29 05:55:07
【问题描述】:

我正在尝试使用 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

command 'openstack metric list' 运行良好, 但是“gnocchi metric list”根本不起作用。 带有以下消息。

无法建立到http://localhost:8041/v1/metric的连接?:HTTPConnectionPool(host='localhost', port=8041):最大重试次数超出了 url:/v1/metric(由 NewConnectionError('引起:无法建立新连接: [Errno 111] 连接被拒绝',))

当我使用 X-Auth-Token 发布 https://localhost/metric/v1/metric(API 访问说度量 URL)时,按照 gnocchi api 的说法,它不起作用。

【问题讨论】:

  • 我也遇到了同样的问题,谁能分享一下解决办法?

标签: cloud openstack ceilometer


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-06
    相关资源
    最近更新 更多