Comments (3)
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.
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.
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.
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)
- Build dev/stable releases using go-ci Docker image
- RPM installation output is "saw-toothed" and "noisy"
- Add support for excluding/ignoring VMs by `Folder` Managed Object ID (MOID) HOT 3
- Add support for excluding/ignoring VMs by Custom Attribute
- Add support for ignoring list of hostnames to the `check_vmware_hs2ds2vms` plugin
- Create plugin to list Virtual Machines in order to test include/exclude options HOT 1
- Evaluate consistency of terminology regarding VM collections HOT 4
- Replace hard-coded flag names with constants HOT 2
- `vsphere.FilterVMsByX` functions have inconsistent return values HOT 1
- Update help text for include/exclude RP flags to emphasize filtering by name HOT 1
- Add support for unescaping URL encoded VirtualMachine names HOT 1
- Create plugin to monitor age of VM templates
- Add support for including/excluding resource pools by Managed Object ID (MOID)
- Add support for including/excluding resource pools by cluster HOT 1
- Add support for including/excluding virtual machines by name
- `gosec` `G601: Implicit memory aliasing in for loop` linting errors
- Refactor objects tally logic used to provide plugin "trailer" summary details HOT 1
- Update datastore plugins to indicate which VMs within datastore are templates
- Add virtual machine templates count to common report "trailer", metrics? HOT 1
- Update `vsphere.VMwareAdminAssistanceNeeded` annotation to point sysadmins to plugin doc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from check-vmware.