How to put constant value to ceilometer resource attribute
Hello, community. I have openstack with several regions: US1, EU1. I have resource "instance_network_interface" with my custom attribute "region_id". My goal is to do "gnocchi measures aggregation ... --groupby project_id --groupby region_id". What is the correct way to put constant attribute "region_id" to my resource.
This is what I want:
gnocchi measures aggregation ... --groupby project_id --groupby region_id
+---------------------------------------------+---------------------------+-------------+-------------------+
| group | timestamp | granularity | value |
+---------------------------------------------+---------------------------+-------------+-------------------+
| project_id: 0bd784e2...223, region_id: EU1 | 2019-05-18T03:00:00+03:00 | 86400.0 | 5959712333.0 |
| project_id: 0bd784e2...223, region_id: US1 | 2019-05-19T03:00:00+03:00 | 86400.0 | 5908975265.0 |
| project_id: 752ef33b...656, region_id: EU1 | 2019-05-18T03:00:00+03:00 | 86400.0 | 5952152165.0 |
| project_id: 752ef33b...656, region_id: US1 | 2019-05-19T03:00:00+03:00 | 86400.0 | 5958534802.0 |