Giter VIP home page Giter VIP logo

Comments (3)

atc0005 avatar atc0005 commented on June 12, 2024

The original version of this plugin made the assumption (as the name might imply) that it was intended specifically for monitoring Resource Pools. From what I recall, I intended the plugin to not only perform memory use monitoring, but also vCPU usage (likely in GHz) and other useful Resource Pool-specific attributes.

As I write this, the original plugin is still only performing combined memory usage monitoring across a specified list of Resource Pools. The default Resources pool is excluded, omitting any VMs outside of Resource Pools.

We can take the original path and keep that behavior, or we can expand the scope and allow this plugin to monitor memory usage for all resources visible to the service account executing the plugin. If Resource Pools are specified, then only Resource Pools are used for the evaluation. If no Resource Pools are given, then all visible VMs are used for evaluation.

Looking again at the old plugin, these values were evaluated:

            $poolDetails = @{
                "name" = $_.Name;
                "cpuActive" = ($_.Runtime.Cpu.OverallUsage / 1000);
                "memoryConsumed" = ($_.Runtime.Memory.OverallUsage / 1GB)
                "memoryTotal" = ($_.Runtime.Memory.MaxUsage / 1GB)
            }

We never did anything with the vCPU usage details, but they were collected in case we eventually did.

Again, this puts the focus specifically on Resource Pools. We could alter the scope and create a plugin that handles both cases. Or, we could create two plugins, one that mirrors the exposed functionality from the old plugin (with the potential to extend it to monitor, and another that monitors memory .

I'm leaning towards two plugins, with the potential outcome of rearranging them later. I'll start with the first plugin as originally planned. I'll skip mention of vCPU usage (GHz) for now, potentially even moving that to a separate plugin (one purpose, one plugin).

from check-vmware.

atc0005 avatar atc0005 commented on June 12, 2024

https://vdc-download.vmware.com/vmwb-repository/dcr-public/a5f4000f-1ea8-48a9-9221-586adff3c557/7ff50256-2cf2-45ea-aacd-87d231ab1ac7/vim.ResourcePool.ResourceUsage.html

NAME TYPE DESCRIPTION
overallUsage xsd:long Deprecated. as of vSphere API 6.5. Use overallCpuUsage and hostMemoryUsage. Close to real-time resource usage of all running child virtual machines, including virtual machines in child resource pools.

Well then.

https://vdc-download.vmware.com/vmwb-repository/dcr-public/a5f4000f-1ea8-48a9-9221-586adff3c557/7ff50256-2cf2-45ea-aacd-87d231ab1ac7/vim.ResourcePool.Summary.QuickStats.html#hostMemoryUsage

NAME TYPE DESCRIPTION
hostMemoryUsage* xsd:long Host memory utilization statistics, in MB. This is also known as consummed host memory. This is between 0 and the configured resource limit. Valid while a virtual machine is running. This includes the overhead memory of a virtual machine.

from check-vmware.

atc0005 avatar atc0005 commented on June 12, 2024

Draft 1 of the plugin uses the older, deprecated overallUsage field. Once that draft lands I'll update the plugin to use hostMemoryUsage instead.

from check-vmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.