Skip to main content

Azure VM

Required Azure VM Attributes

The following cost calculation tags are required for traces originating from Azure Virtual Machines.

Always Required Fields

These fields are always required for Azure VM cost calculation:

Attribute NameExample ValueAllowed Values
azure.vm.service_nameVirtual MachinesAzure service name
azure.vm.locationeastusAzure region
azure.vm.sizeStandard_D2s_v3Azure VM size
azure.vm.os_typeLinuxLinux, Windows
azure.vm.priorityRegularRegular, Low, Spot

Cost Calculation

Azure VMs are priced at an hourly rate. Beakpoint calculates cost based on span duration:

cost = hourly_rate × (span_duration_seconds / 3600)

When multiple spans overlap on the same VM (identified by azure.vm.size + azure.vm.os_type + azure.vm.priority), costs are proportionally shared using a time-sharing algorithm. Spans on different VM instances are priced independently.

Example Configuration

Set these as OpenTelemetry resource attributes in your application:

OTEL_RESOURCE_ATTRIBUTES: "azure.vm.service_name=Virtual Machines,azure.vm.location=eastus,azure.vm.size=Standard_D2s_v3,azure.vm.os_type=Linux,azure.vm.priority=Regular"