79536817

Date: 2025-03-26 17:40:31
Score: 0.5
Natty:
Report link

Update 2025, March, for Windows:

Multiple ways exist.

Fast, easy and expensive:

  1. Open the virtual machine in the Azure Portal

  2. Navigate to Monitoring/Insights and enable it

  3. Wait for everything to be set up and the first data to be propagated (5 minutes should be good). Refresh the page and you should see it.

Fast, somewhat complicated, way less expensive:

  1. Do the steps from "Fast, easy and expensive", but when you do it, make sure to note the "Data collection rule"

  2. Navigate to the previously noted Data collection rule

  3. Below Configuration/Data sources select Performance Counters
    Performance counters overview

  4. Select Custom and enter your counters. Replace X here with the Diskletters you need. If a letter does not exist on a VM, it's ignored. Don't forget to click Add

    Add custom performance counters

  5. Useful counters for Disk utilization are (X again placeholder):
    \LogicalDisk(X:)\Free Megabytes
    \LogicalDisk(X:)\% Free Space

  6. Select the newly added counters and click on Destinations:
    Selection of newly added counters

  7. Click on Add destination and add a new Destination, remove the existing one
    Destination adaptation

  8. Click on save

  9. Navigate back to the virtual machine where you started to and open Monitoring/Metrics and adjust the Metric Namespace. There you can find your Metrics:View Disk metrics on the machine

P.S.: To get a list of all counters available on your machine, run typeperf -q in a Powershell, run typeperf -q -? to get help on the command.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Agyss