Skip to content
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

datastore tag on virtualdisk measurement incorrect on VMs with disks in multiple datastores #55

Open
sleepinggenius2 opened this issue Jan 12, 2018 · 1 comment
Assignees
Milestone

Comments

@sleepinggenius2
Copy link

We have VMs with virtual disks attached out of multiple datastores. It looks like the code is assigning a single datastore value for each VM, instead of assigning per virtual disk. This is causing issues with our IOPs graphs, as the datastores are not correctly tagged.

Expected:
(*client.Point)(0xc4202c2e70)(virtualdisk,cluster=Cluster1,datastore=DS2,esx=hv1,host=vcenter,instance=scsi0:1,name=testvm,respool=Resources ...
(*client.Point)(0xc4202c2e80)(virtualdisk,cluster=Cluster1,datastore=DS1,esx=hv1,host=vcenter,instance=scsi0:0,name=testvm,respool=Resources ...

Actual:
(*client.Point)(0xc4202c2e70)(virtualdisk,cluster=Cluster1,datastore=DS2,esx=hv1,host=vcenter,instance=scsi0:1,name=testvm,respool=Resources ...
(*client.Point)(0xc4202c2e80)(virtualdisk,cluster=Cluster1,datastore=DS2,esx=hv1,host=vcenter,instance=scsi0:0,name=testvm,respool=Resources ...

vmSummary[vm.Self]["datastore"] = strings.Replace(strings.Replace(re.FindString(fmt.Sprintln(vm.Summary.Config)), "[", "", -1), "]", "", -1)

@sofixa
Copy link
Member

sofixa commented Jan 13, 2018

Hi,

Yeah, sorry, that's something i noted some time ago and completely forgot about since we never use vdisks on different datastores. I'll try to fix it these days.

Cheers,
Adrian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants