Skip to content

Commit

Permalink
Performance metric Unit was also included in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandan-Hegde committed Apr 29, 2019
1 parent 17ddffa commit ad652f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/vm_perf_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():
# counterId example: 6
counterInfo = {}
for c in perfManager.perfCounter:
fullName = c.groupInfo.key + "." + c.nameInfo.key + "." + c.rollupType
fullName = c.groupInfo.key + "." + c.nameInfo.key + "." + c.rollupType + "(" + c.unitInfo.key + ")"
counterInfo[fullName] = c.key

# create a list of vim.VirtualMachine objects so
Expand Down

1 comment on commit ad652f3

@Chandan-Hegde
Copy link
Author

@Chandan-Hegde Chandan-Hegde commented on ad652f3 Apr 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue #569 resolved. The above commit resolves the issue where admin just wants to fetch the performance metric of a single VM instead of all the VMs registered to vCenter.

Please sign in to comment.