Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.21 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.21 KB

winwmi

Sample code to get WMI metrics from a Windows system using Go.

This is really just a simple layout on how it's done. It would need to be taylored to capture what's needed.

The metrics captured are helpful in system right-sizing for a cloud migration from on-prem to Azure or AWS (for example).

These are the basic metrics that are needed for clound migration.

Cloud Metrics

  • Currently Configured

    • Configured CPUs
    • Processor Speed
    • Configured RAM (GiB)
    • OS Type and Level
  • Trend Over Time (5-minute samples minimum)

    • CPU Used (%)
    • CPU Used (#)
    • CPU Demand (VMware)
    • Active memory
    • Consumed Memory
    • File cache memory
    • Storage Capacity Total
    • Storage Capacity Used

Installation

There are a couple of ways to run this.

Both require that you have Go installed on your system.

Clone This Repo

Clone the repo and run:

git clone https://github.com/vgcrld/winwmi.git
cd winwmi
go run main.go

Install Directly

If you have go installed and configured on your windows system simply run the following command to create the binary.

go install github.com/vgcrld/winwmi@HEAD

To get the most recent commit.