-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openstack exporter nova_server_status fails to return flavor id #220
Comments
Same problem with rocky. Output of v1.1.0 vs v1.5.0:
|
That's because the way the flavor are returned by the API changed with a microversion and that microversion was promoted as the minimum version for victoria. Horizon had the same issue up to 18.6.4 that was recently patched: https://bugs.launchpad.net/horizon/+bug/1940834 |
Nova API version 2.88 removed details from the os-hypervisors API [1]. These details are queried by openstack-exporter for metrics such as openstack_nova_running_vms. However, a change between v1.3.0 and v1.4.0 of the exporter caused it to use the latest API version, breaking collection of these metrics [2]. Starting from v1.5.0 of the exporter, OS_COMPUTE_API_VERSION can be set to configure the Nova API version to be used. Set it to 2.79 (maximum in Train), which also fixes an issue displaying the flavor ID [4]. [1] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-wallaby [2] openstack-exporter/openstack-exporter#191 [3] openstack-exporter/openstack-exporter#201 [4] openstack-exporter/openstack-exporter#220 Change-Id: I7605a3f9f74effb29ecec3b28e4709fd5f7f8cd4
Nova API version 2.88 removed details from the os-hypervisors API [1]. These details are queried by openstack-exporter for metrics such as openstack_nova_running_vms. However, a change between v1.3.0 and v1.4.0 of the exporter caused it to use the latest API version, breaking collection of these metrics [2]. Starting from v1.5.0 of the exporter, OS_COMPUTE_API_VERSION can be set to configure the Nova API version to be used. Set it to 2.79 (maximum in Train), which also fixes an issue displaying the flavor ID [4]. [1] https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-wallaby [2] openstack-exporter/openstack-exporter#191 [3] openstack-exporter/openstack-exporter#201 [4] openstack-exporter/openstack-exporter#220 Change-Id: I7605a3f9f74effb29ecec3b28e4709fd5f7f8cd4
I believe this changed with microversion 2.47: https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id43
|
Since v1.4.0, openstack-exporter will use the latest Nova API microversion, which means any OpenStack cloud running Pike or newer will see this behaviour. You can use the |
But still, this doesn't fix the fact that exporter don't catch up latest available information/data from the new API microversion. |
We are trying to get openstack metrics to Prometheus for further accounting data processing with cloudkitty.
However, when I query prometheus metrics from openstack exporter
openstack_nova_server_status
fieldflavor_id
is always returning <nil> in prometheus openstack exporter.For example:
It seems that Prometheus is aware of flavors because direct query
curl 'http:https://prometheus_host:9091/api/v1/label/flavor_id/values
returns list where values correspond to existing flavor ids in OpenStack.
Our OpenStack instance is currently on Wallaby release and is based on Kolla-Ansible.
Looking forward for suggestions or a fix because we really need the flavor_id in downstream accounting processing.
The text was updated successfully, but these errors were encountered: