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

inputs.vsphere - Add VMs memory configuration as a tag #11588

Open
6monlambert opened this issue Aug 2, 2022 · 2 comments · May be fixed by #11591
Open

inputs.vsphere - Add VMs memory configuration as a tag #11588

6monlambert opened this issue Aug 2, 2022 · 2 comments · May be fixed by #11591
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@6monlambert
Copy link
Contributor

Feature Request

Proposal:

I need to add the configured memory size of virtual machines in the vSphere input plugin. I worked on the code and was able to compile it. It works with the desired behaviour.

Current behavior:

vSphere input plugin does not allow us to retrieve the configured memory size of a virtual machine. The only metric available is the mem.granted.average which is not always equal to the actual configuration of the machine.

See this VMWare website or this paper to understand why.

Desired behavior:

The vSphere plugin should be able to retrieve the actual configuration of the VM. The value being a configuration metric, and not a performance metric, it should be delivered as a tag.

For example :

vsphere_vm_virtualDisk,esxhostname=DC0_H0,guest=other,host=host.example.com,moid=vm-35,os=Mac,source=DC0_H0_VM0,vcenter=localhost:8989,vmname=DC0_H0_VM0,memorySizeMB=2048 write_average=144i,read_average=4i 1535660299000000000
vsphere_vm_net,esxhostname=DC0_H0,guest=other,host=host.example.com,moid=vm-38,os=Mac,source=DC0_H0_VM1,vcenter=localhost:8989,vmname=DC0_H0_VM1,memorySizeMB=8192 bytesRx_average=242i,bytesTx_average=308i 1535660299000000000

Use case:

  • Be able to show the VM configuration in dashboards.
  • Make recommendations on the configuration of the VM (either add or remove RAM), by comparing it with the RAM utilization.
@6monlambert 6monlambert added the feature request Requests for new plugin and for new features to existing plugins label Aug 2, 2022
@6monlambert 6monlambert linked a pull request Aug 2, 2022 that will close this issue
3 tasks
@6monlambert 6monlambert changed the title vSphere Input - Add VMs memory configuration as a tag inputs.vsphere - Add VMs memory configuration as a tag Aug 2, 2022
@reimda
Copy link
Contributor

reimda commented Aug 2, 2022

There is some discussion going on in the linked PR about implementation and whether this should be a tag or field. Thanks for your work on this!

@kilowatto
Copy link

Hello,

There is any update for this request,
will be very helpfull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants