r/openstack • u/Affectionate_Net7336 • Dec 27 '24
Why Are Instance Metrics Not Logging in Gnocchi? (Deployed with Kolla-Ansible)
I’ve deployed OpenStack using Kolla-Ansible with Ceilometer, Gnocchi, and Prometheus for monitoring. While services are running, instance-level metrics (e.g., CPU, memory, disk I/O) are not being logged in Gnocchi.
- Ceilometer collects metrics (verified via
ceilometer meter-list), and Gnocchi shows no errors (gnocchi statusis fine). gnocchi resource listdoes not include instance-related metrics.
I’ve checked configurations (ceilometer.conf, gnocchi.conf), RabbitMQ queues, archive policies, and ensured services are synced with the same OpenStack version.
What could cause instance metrics to fail logging in Gnocchi? Any help or suggestions are appreciated!
2
Upvotes
1
u/przemekkuczynski Dec 27 '24
gnocchi resource-type list
| instance | - flavor_id: type: string , required: True , max_length: 255 , min_length: 0 |
| | - image_ref: type: string , required: False , max_length: 255 , min_length: 0 |
| | - host: type: string , required: True , max_length: 255 , min_length: 0 |
| | - display_name: type: string , required: True , max_length: 255 , min_length: 0 |
| | - server_group: type: string , required: False , max_length: 255 , min_length: 0 |
| | - flavor_name: type: string , required: True , max_length: 255 , min_length: 0 |
| | - launched_at: type: datetime , required: False |
| | - created_at: type: datetime , required: False |
| | - deleted_at: type: datetime , required: False |
| | - availability_zone: type: string , required: False , max_length: 255 , min_length: 0 |
| instance_disk | - name: type: string , required: True , max_length: 255 , min_length: 0 |
| | - instance_id: type: uuid , required: True |
| instance_network_interface | - name: type: string , required: True , max_length: 255 , min_length: 0 |
| | - instance_id: type: uuid , required: True |
1
u/Hfjqpowfjpq Dec 28 '24
I had the same issues with a Kolla deployment. Unlikely I couldn't fix it. I switched to grafana + prometheus as a workaround.
1
u/pakeha_nisei Dec 29 '24 edited Jan 24 '25
Check the chain of operations to make sure everything is correct.
ceilometer-polling --polling-namespaces compute) running on the nodes where your instances are running? Do the logs report that samples are being found and published?