Skip to content

Azure Virtual Machine (VM)

Availability BadgeResource Discovery Support Badge

You can declare to scrape an Azure Virtual Machine via the VirtualMachine resource type.

When using declared resources, the following fields need to be provided:

  • virtualMachineName - The name of the virtual machine

All supported metrics are documented in the official Azure Monitor documentation.

Example

Here is an example configuration:

name: azure_virtual_machine_percentage_cpu
description: "Average percentage cpu usage on an Azure virtual machine"
resourceType: VirtualMachine
azureMetricConfiguration:
  metricName: Percentage CPU
  aggregation:
    type: Average
resources: # Optional, required when no resource discovery is configured
- virtualMachineName: promitor-virtual-machine-1
- virtualMachineName: promitor-virtual-machine-2
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery)
- name: virtual-machine-landscape
Back to top