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 Name | Example Value | Allowed Values |
|---|---|---|
azure.vm.service_name | Virtual Machines | Azure service name |
azure.vm.location | eastus | Azure region |
azure.vm.size | Standard_D2s_v3 | Azure VM size |
azure.vm.os_type | Linux | Linux, Windows |
azure.vm.priority | Regular | Regular, 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"