-
Notifications
You must be signed in to change notification settings - Fork 599
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
add option to libvirtkvm collector to build instance name based on openstack metadata #481
base: master
Are you sure you want to change the base?
add option to libvirtkvm collector to build instance name based on openstack metadata #481
Conversation
@@ -28,10 +28,10 @@ specific to the compute node | bool | |||
uri | qemu:///system | The libvirt connection URI. By default it's<br> | |||
'qemu:///system'. One decent option is<br> | |||
'qemu+unix:///system?socket=/var/run/libvirt/libvit-sock-ro'. | str | |||
format_name_using_metadata | False | Use openstack metadata to generate instance name, its useful when do you and to group VMs metrics by project | string, possible options: ${owner_project},${owner_project_uuid},${instance},${instance_uuid} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not in the config option list
Can you update the |
@@ -21,6 +22,47 @@ def setUp(self): | |||
def test_import(self): | |||
self.assertTrue(LibvirtKVMCollector) | |||
|
|||
@patch('libvirt') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someone can help here ? I need to mock the entire libvirt module...
I'm not a python guy and had never written this kind of tests 💥
add option to libvirtkvm collector to build instance name based on openstack metadata, this is useful to group VMs tenant metrics on Openstack.