Ad Widget

Collapse

ESX - Calculate Total Memory Allocated to VMs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Kodali
    Junior Member
    • May 2023
    • 20

    #1

    ESX - Calculate Total Memory Allocated to VMs

    Appreciate if someone can help with this as I am at my wit's end...

    The organization I work for provides VM hosting on VCenter / ESX platform. We charge per usage of data, memory CPU etc.

    Is there an item I can create that calculates the total amount of RAM assigned to all VMs on the host? Say if there are 10 VMs, I need the total amount of RAM allocated for those. This has to take into account any other VMs that are added without having to modify the formula.

    Until now I have used the vmware.hv.memory.used, but it is not providing the correct information for me. I wonder if this is because it is also taking into account the memory used by the host itself?

  • kamil1
    Member
    • Aug 2024
    • 40

    #2
    You might be right that vmware.hv.memory.used value contains the memory used by ESX host.
    I would suggest to create the calculated item in which you could sum up the vm sizes. Try the one below:

    sum(vmware.vm.memory.size[,vmid])

    Comment

    • Sven Kodali
      Junior Member
      • May 2023
      • 20

      #3
      Thanks for your suggestion, is there a way to include all VMs without specifying each one?

      Comment

      • kamil1
        Member
        • Aug 2024
        • 40

        #4
        Please, see the aggregations here:

        Comment

        Working...