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 refactor (discovery): move from github.com/pkg/errors to 'errors' and 'fmt' (#10807) 2022-06-03 13:47:14 +02:00
hypervisor_test.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
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 Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
openstack.go delete redundant alias (#11180) 2022-08-31 15:50:38 +02:00