'Empty gnocchi metric list in Devstack

I installed devstack and ceilometer by adding the following lines in the local.conf file:

enable_plugin ceilometer https://opendev.org/openstack/ceilometer.git

CEILOMETER_BACKEND=gnocchi

Devstack works correctly (I am able to create images, instances, etc.). The problem is that I cannot visualize the metrics and resources using "gnocchi metric list" and "gnocchi resource list". No errors but the body response is empty.

"ceilometer-upgrade" gives the following error: DEBUG ceilometer.cmd.storage Upgrade Gnocchi resource types upgrade /opt/stack/ceilometer/ceilometer/cmd/storage.py:42

While "ceilometer-polling" prints "The resource could not be found".

How can I resolve this issue? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source