canonical / openstack-exporter-operator

The openstack-exporter-operator is a machine charm for openstack-exporter.
https://charmhub.io/openstack-exporter
Apache License 2.0
1 stars 6 forks source link

Fix missing nova metrics from openstack-exporter #30

Closed samuelallan72 closed 3 months ago

samuelallan72 commented 3 months ago

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: "

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 https://github.com/openstack-exporter/openstack-exporter/issues/268

samuelallan72 commented 3 months ago

Thanks @chanchiwai-ray , I don't think it will cause incompatibility, because I'm under the impression that this in effect pins the nova api version being used (as in, updates from openstack/nova won't change things).