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
Failed to collect metric for exporter: nova #268
Comments
I have this problem too. (msg="Failed to collect metric for exporter: nova, error: failed to collect metric: running_vms, error: CPUInfo has unexpected type: " source="exporter.go:123") after update to wallaby. |
same problem on Zed |
This seems to be a result of changes in the Nova API after version 2.87. The gophercloud code tries to fetch the This causes the SDK to error and ultimately the Nova collector in openstack-exporter also errors meaning the metrics here fail. We've worked around this by setting The 2.87 version of the Nova API still contains the |
@adamoswick |
On latest main I get this similar error output:
Confirming that setting Also note that when this error happens, it also causes metrics to not be written for all the other metrics in the ListHypervisors function: openstack-exporter/exporters/nova.go Lines 200 to 225 in f1a2af1
|
Previously this error was seen in the logs: ts=2024-04-03T23:09:00.715Z caller=exporter.go:126 level=error err="Failed to collect metric for exporter" exporter=nova error="failed to collect metric: running_vms, error: CPUInfo has unexpected type: <nil>" Causing `openstack_nova_running_vms` and a selection of other hypervisor related metrics to be missing from the output. This applies the workaround noted in openstack-exporter/openstack-exporter#268
Previously this error was seen in the logs: ts=2024-04-03T23:09:00.715Z caller=exporter.go:126 level=error err="Failed to collect metric for exporter" exporter=nova error="failed to collect metric: running_vms, error: CPUInfo has unexpected type: <nil>" Causing `openstack_nova_running_vms` and a selection of other hypervisor related metrics to be missing from the output. This applies the workaround noted in openstack-exporter/openstack-exporter#268
CentOS8 - Openstack yoga - nova
I have encountered a problem that is difficult to solve, I asked for help:
openstack-exporter: 1.6.0
problem: ERRO[0021] Failed to collect metric for exporter: nova, error: failed to collect metric: running_vms, error: CPUInfo has unexpected type: source="exporter.go:122"
The text was updated successfully, but these errors were encountered: