On 3/3/22 12:31, Molka Gharbaoui wrote:
> Hi Matthias,
>
> Sorry for the confusion. Gnocchi is running and I am able to execute
> commands like "gnocchi metric list" and "gnocchi resource list" without
> errors even though the response is empty. Also checking mysql, the
> gnocchi database is correctly created.
>
> By the link I previously shared I wanted just to highlight that there
> are some differences between what was written there and between the
> environemnt I installed. I was searching there because I would have
> expected that Devstack installs and configures every component in
> automatic with no or minimum external intervention (in fact if I don't
> consider the Telemetry aspect, the rest works perfectly fine).
>
> I will follow Rafael guidelines to better undrstand where is the issue.
>
> Thanks.
Something I have used in the past is a local.conf like this:
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
IMAGE_URL_SITE="
https://download.fedoraproject.org"
IMAGE_URL_PATH="/pub/fedora/linux/releases/33/Cloud/x86_64/images/"
IMAGE_URL_FILE="Fedora-Cloud-Base-33-1.2.x86_64.qcow2"
IMAGE_URLS+=","$IMAGE_URL_SITE$IMAGE_URL_PATH$IMAGE_URL_FILE
CEILOMETER_BACKEND=gnocchi
USE_PYTHON3="True"
VERBOSE="True"
VERBOSE_NO_TIMESTAMP="True"
#
LIBS_FROM_GIT=aodh,ceilometer,cinder,devstack,devstack-gate,dib-utils,diskimage-builder,glance,heat,keystone,neutron,nova,placement,requirements,swift
enable_plugin aodh
https://opendev.org/openstack/aodh
enable_plugin ceilometer
https://opendev.org/openstack/ceilometer
enable_plugin heat
https://opendev.org/openstack/heat
INSTALL_TEMPEST=False
Hope that helps. The IMAGE_URL_FILE needs probably adjustment, fedora 33
is not supported anymore.
Matthias
>
>
> ------------------------------------------------------------------------
> *Da:* Matthias Runge <mrunge@matthias-runge.de>
> *Inviato:* giovedì 3 marzo 2022 11:59
> *A:* openstack-discuss@lists.openstack.org
> <openstack-discuss@lists.openstack.org>
> *Oggetto:* Re: R: [Devstack][Gnocchi][Ceilometer] Not able to retrieve
> metrics using ceilometer and gnocchi
> On 3/3/22 10:29, Molka Gharbaoui wrote:
>> Thank you Matthias for your reply.
>>
>> Unfortunately, from the logs I still cannot understand what is the issue.
>>
>> Could someone kindly indicate me how ceilometer and gnocchi should be
>> configured to get the data?
>>
>> For example in this link:
>>
https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html
> <
https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html>
>
>> <
https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html
> <
https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html>> the
>
>> endpoints should use the following URL:
http://controller:8041 <
http://controller:8041>
>> <
http://controller:8041 <
http://controller:8041>> while in my case the
> 8041 port is not even
>> listening and the API indicated in the dashboard for Gnocchi is http://
>> <
http://controller:8041 <
http://controller:8041>>x.x.x.x/metric.
>>
>> Thank you in advance.
>>
>
> OpenStack configuration is complex. The guide does not remotely touch on
> production environments. Please do not confuse devstack with production
> envionments. Also the doc you linked is not for devstack itself.
>
> The flow in general is: data is generated by the services like nova or
> glance. Ceilometer listens on the bus and also polls for information.
> The info is sent then over (as configured in publishers.yaml) to gnocchi.
> Gnocchi has an api, ceilometer has not. Reading your response, this
> makes me suspicious if there is gnocchi running. From the initial
> question it suggests it is, from your most recent response, it is not.
>
>
> Matthias
>