I'm newbie on openstack and i'm trying to use gnocchi and ceilometer to collect data in all domains. But gnocchi only works on default domain.
This project is admin project and it's on default domain and the command:
~ gnocchi aggregates --resource-type image --start "2019-01-01T00:00:00" --stop "2022-01-01T01:00:00" --fill 0 --granularity 300 "(metric image.size mean)" "project_id=f5f6e3c428cc4250a08b2cefb9b72a16"
+------------------------------------------------------+---------------------------+-------------+-------------+
| name | timestamp | granularity | value |
+------------------------------------------------------+---------------------------+-------------+-------------+
| 787a7f52-d1dc-46d1-95d8-7ecea9586820/image.size/mean | 2021-10-29T21:55:00+00:00 | 300.0 | 627441664.0 |
+------------------------------------------------------+---------------------------+-------------+-------------+
And this project is on another domain and the command output:
~ gnocchi aggregates --resource-type image --start "2019-01-01T00:00:00" --stop "2022-01-01T01:00:00" --fill 0 --granularity 300 "(metric image.size mean)" "project_id=5d2ae106ea0b44eaac57b90e85cccdcd"
{'cause': 'Metrics not found', 'detail': ['image.size']} (HTTP 400)
I've added ceilometer and gnocchi users to the domain and also to the tenant as admin role:
~ openstack role add --domain mydomain --user ceilometer admin
~ openstack role add --project 5d2ae106ea0b44eaac57b90e85cccdcd --user ceilometer admin
~ openstack role add --domain mydomain --user gnocchi admin
~ openstack role add --project 5d2ae106ea0b44eaac57b90e85cccdcd --user gnocchi admin
But no differences.