prometheus/discovery/openstack
Taavi Väänänen 0f4c27e2bf
discovery/openstack: Include instance image ID in labels
Adds a new label to include the ID of the image that an instance is
using. This can be used for example to filter a job to only include
instances using a certain image as that image includes some exporter.

Sometimes the image information isn't available, such as when the image
is private and the user doesn't have the roles required to see it. In
those cases we just don't set the label, as the rest of the information
from the discovery provider can still be used.

Signed-off-by: Taavi Väänänen <hi@taavi.wtf>
2023-07-04 18:50:11 +03:00
..
hypervisor.go
hypervisor_test.go
instance.go discovery/openstack: Include instance image ID in labels 2023-07-04 18:50:11 +03:00
instance_test.go discovery/openstack: Include instance image ID in labels 2023-07-04 18:50:11 +03:00
mock_test.go
openstack.go