VMware Sample Exchange
Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.
Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.
Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.
Filters
Type
SDK / Platform / Tool
Contributor
Language
- Cost Showback for VM group by size like s m l xl for Operations 8.XThe dashboard displays the cost of running virtual machines (VMs) grouped by t-shirt sizes (i.e. small, medium, large) rather than by specific VM. This would provide a high-level overview of the costs ...vRealize Operations Manager vRealize Ops Super Metrics
- Cluster Compute resource Free Memory TBAs seen in vSphere clientvRealize Operations Manager vRealize Ops Super Metrics
- Super Metric - Cluster Total Disk Space Less Local DatastoresIf you'd like to have total available disk space for a cluster that doesn't include local datastore space. This uses the "where" clause with looping to add up all child datastores that have the Summa ...vRealize Operations Manager vRealize Ops Super Metrics
- supermetrics.jsonThere are six super metrics in this .json file. They are all Super Metrics attached to the VM for ESXi Host properties/metrics and Cluster properties/metrics. https://github.com/brockpeterson/vrops_da ...vRealize Operations Manager vRealize Ops Super Metrics
- VM vCPU Multiplier v3 Super MetricVM vCPU * 3 defined on the OS object discovered by Telegraf. I had to create this super metric on the OS object such that I could compare it to the Processor Queue Length \r\nmetric discovered by Tele ...vRealize Operations Manager vRealize Ops Super Metrics
- Cluster Compute resource Free Disk TBAs seen in vSphere clientvRealize Operations Manager vRealize Ops Super Metrics
- Cluster Compute resource Free CPU GHzAs seen in vSphere clientvRealize Operations Manager vRealize Ops Super Metrics
- Number of Datastores in a Datastore ClusterFeature request submitted to have this metric/property OOTB, but in the meantime..... H/T to Spas for the clue: http://kaloferov.com/blog/skkb1042/vRealize Operations Manager vRealize Ops Super Metrics
- Host uptime in daysValue is rounded down and does not include the unit like the OOTB one.vRealize Operations Manager vRealize Ops Super Metrics
- VM Guest OS uptime in daysValue is rounded down and does not include the unit like the OOTB one.vRealize Operations Manager vRealize Ops Super Metrics