Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Azure Diagnostics on a VM - Not showing in monitor on the portal

$
0
0

I have been attempting to get Azure Diagnostics (Basic) monitoring enabled to get some performance metrics from a group of VMs in one of my subscriptions. I am able to run the following Power Shell, and wadcfg.xml to enable Azure Diagnostics, and "successfully" configure the plugin, however nothing seems to show up on the monitor... I can't seem to figure out what I've done wrong. I apologize in advance if this is in the wrong section, or very wall-of-text'ish

 The command(s) I am using to enable Azure Diagnostics;

$VMObject |
Set-AzureVMDiagnosticsExtension -DiagnosticsConfigurationPath $configPath `
 -StorageContext $storageContext -Version '1.*' |
Update-AzureVM

The wadcfg.xml contents;

<?xml version="1.0" encoding="utf-8"?>
<PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
  <WadCfg>
 <DiagnosticMonitorConfiguration overallQuotaInMB="4096">
 <PerformanceCounters scheduledTransferPeriod="PT0S">
 <PerformanceCounterConfiguration counterSpecifier="\Memory\Available Bytes" sampleRate="PT15S" unit="Bytes"><annotation displayName="Memory available" locale="en-us"/></PerformanceCounterConfiguration>
 <PerformanceCounterConfiguration counterSpecifier="\Memory\% Committed Bytes In Use" sampleRate="PT15S" unit="Percent"><annotation displayName="Memory percentage" locale="en-us"/></PerformanceCounterConfiguration>
 </PerformanceCounters>
 <WindowsEventLog scheduledTransferPeriod="PT1M"><DataSource name="System!*"/></WindowsEventLog>
 <Metrics resourceId="/subscriptions/SUBSCRIPTION/resourceGroups/RESOURCE_GROUP/providers/Microsoft.ClassicCompute/virtualMachines/VM_NAME"><MetricAggregation scheduledTransferPeriod="PT1H"/><MetricAggregation scheduledTransferPeriod="PT1M"/></Metrics>
 </DiagnosticMonitorConfiguration>
 </WadCfg>
</PublicConfig>


This is from \Microsoft.Azure.Diagnostics.IaaSDiagnostics\1.4.2.1 on the VM;

######
Execution Output:
Execution Error:
######
Command C:\Packages\Plugins\Microsoft.Azure.Diagnostics.IaaSDiagnostics\1.4.2.1\DiagnosticsPluginLauncher.exe of Microsoft.Azure.Diagnostics.IaaSDiagnostics has exited withExit code: 0
plugin (name: Microsoft.Azure.Diagnostics.IaaSDiagnostics, version: 1.4.2.1) completed successfully.


But nothing shows up in the monitoring chart I have edited the chart to include the new performance counters, but it just shows up as a dash mark with no information - I'll get a screenshot of this shortly.  Is it that I am missing something or just have the wadcfg entirely butchered? 

Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>