Forum Discussion

roopesh_shetty's avatar
roopesh_shetty
Tin Contributor
Apr 09, 2026

Azure VMs host (platform) metrics (not guest metrics) to the log analytics workspace ?

Hi Team,

 

Can some one help me how to send Azure VMs host (platform) metrics (not guest metrics) to the log analytics workspace ?

Earlier some years ago I used to do it, by clicking on “Diagnostic Settings”, but now if I go to “Diagnostic Settings” tab its asking me to enable guest level monitoring (guest level metrics I don’t want) and pointing to a Storage Account. I don’t see the option to send the these metrics to Log analytics workspace.

I have around 500 azure VMs whose host (platform) metrics (not guest metrics) I want to send it to the log analytics workspace.

 

 

 

2 Replies

  • You want host-level VM metrics such as CPU, disk, and network for about 500 machines in Log Analytics without guest monitoring. Platform metrics are collected automatically in Azure Monitor Metrics; the guest-monitoring prompt is a different path. Use Metrics Export with a data collection rule. In Azure Monitor, create a DCR with Platform telemetry, select the required VM metrics, choose the Log Analytics workspace, then associate the 500 VMs. Keep the DCR and workspace in the same region; monitored VMs may be elsewhere. New records land in AzureMetricsV2, normally within minutes, although initial appearance can take longer. Use Azure Policy or infrastructure-as-code to maintain associations as VMs are added. This exports new metrics only, not historical data. For historical cross-resource queries, use the Metrics Batch API. Azure Monitor Agent is not required for this platform-metrics route.

  • Go to the VM resource in Azure Portal

    Navigate to Monitor → Metrics to confirm platform metrics are available.

    Set Diagnostic Settings

    In the VM blade, open Monitoring → Diagnostic settings.

    Click + Add diagnostic setting.

    Select Metrics (platform metrics).

    Choose Send to Log Analytics workspace as the destination.

    Pick your workspace.

    Save.

    Verify in Log Analytics

    In your workspace, run a query such as:

    InsightsMetrics

    | where Namespace == "vm.azm.ms"

    | summarize avg(Val) by Name, bin(TimeGenerated, 5m)

    This confirms host metrics are flowing.