Azure Virtual Machines¶
Collect Azure Virtual Machines metrics.
Configuration¶
Install Func¶
It is recommended to enable TrueWatch integration - extension - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with the script installation.
If deploying Func manually, refer to Manual Func Deployment
Recommended to deploy GSE version
Install Script¶
Note: Please prepare the required Azure application registration information in advance and assign the
Monitoring Reader
role to the application registration.
To synchronize Azure Virtual Machines monitoring data, we install the corresponding collection script: "TrueWatch Integration (Azure-Virtual Machine Collection)" (ID: integration_azure_vm
)
After clicking [Install], input the corresponding parameters:
Azure Tenant ID
: Tenant IDAzure Client ID
: Application registration Client IDAzure Client Secret Value
: Client secret value, note it is not the IDSubscriptions
: Subscription ID, multiple subscriptions separated by,
Click [Deploy Startup Script], the system will automatically create Startup
script sets and configure the corresponding startup scripts.
After enabling, you can see the corresponding automatic trigger configuration in "Manage / Automatic Trigger Configuration". Click [Execute] to immediately execute once without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In "Manage / Automatic Trigger Configuration", confirm whether the corresponding task has the corresponding automatic trigger configuration, and check the corresponding task records and logs for any exceptions.
- In TrueWatch, check if asset information exists in "Infrastructure / Custom".
- In TrueWatch, check if there are corresponding monitoring data in "Metrics".
Metrics¶
After configuring Azure Virtual Machines monitoring data, the default metrics are as follows. More metrics can be collected through configuration Microsoft.Compute/virtualMachines Supported Metrics
Metric Name | Description | Unit |
---|---|---|
available_memory_bytes_average |
The amount of physical memory immediately available for processes or system use in the virtual machine, in bytes. | byte |
cpu_credits_consumed_average |
The total number of CPU credits consumed by the virtual machine. This only applies to B-series burstable VMs. | count |
cpu_credits_remaining_average |
The total number of CPU credits available for bursting. This only applies to B-series burstable VMs. | count |
disk_read_bytes_total |
The total number of bytes read from all disks attached to the VM in one minute. If read-only or read-write disk caching is enabled, this metric includes bytes read from the cache. | byte |
disk_read_operations_sec_average |
The number of input operations read from all disks attached to the VM per second. If read-only or read-write disk caching is enabled, this metric includes IOPS read from the cache. | count/s |
disk_write_bytes_total |
The total number of bytes written to all disks attached to the VM in one minute. | byte |
disk_write_operations_sec_average |
The number of output operations written to all disks attached to the VM per second. | count/s |
inbound_flows_average |
The current number of flows in the inbound direction (traffic entering the VM). | count |
network_in_total |
The total network traffic entering the virtual machine. | byte |
network_out_total |
The total network traffic exiting the virtual machine. | byte |
os_disk_bandwidth_consumed_percentage_average |
The percentage of OS disk bandwidth consumed per minute. This only applies to VM series that support premium storage. | % |
os_disk_iops_consumed_percentage_average |
The percentage of OS disk I/Os consumed per minute. This only applies to VM series that support premium storage. | % |
os_disk_latency_average |
The average time taken to complete each IO on the OS disk during the monitoring period, in milliseconds. This only applies to disks attached to the VM using the SCSI disk controller and not to disks using the NVMe disk controller. | ms |
os_disk_queue_depth_average |
The current number of outstanding IO requests waiting to be read from or written to the OS disk. | count |
os_disk_read_bytes_sec_average |
The number of bytes read from the OS disk per second. If read-only or read-write disk caching is enabled, this metric includes bytes read from the cache. | byte |
os_disk_read_operations_sec_average |
The number of input operations read from the OS disk per second. If read-only or read-write disk caching is enabled, this metric includes IOPS read from the cache. | count/s |
os_disk_target_bandwidth_average |
The baseline throughput per second that the OS disk can achieve without bursting. | count/s |
os_disk_target_iops_average |
The baseline IOPS that the OS disk can achieve without bursting. | count |
os_disk_write_bytes_sec_average |
The number of bytes written to the OS disk per second. | byte/s |
os_disk_write_operations_sec_average |
The number of output operations written to the OS disk per second. | byte/s |
outbound_flows_average |
The current number of flows in the outbound direction (traffic exiting the VM). | count |
percentage_cpu_average |
The percentage of allocated compute units currently being used by the virtual machine. | % |
temp_disk_latency_average |
The average time taken to complete each IO on the temporary disk during the monitoring period, in milliseconds. This only applies to temporary disks that are not NVMe temporary storage disks. | ms |
temp_disk_queue_depth_average |
The current number of outstanding IO requests waiting to be read from or written to the temporary disk. This only applies to temporary disks that are not NVMe temporary storage disks. | count |
temp_disk_read_bytes_sec_average |
The number of bytes read from the temporary disk per second. This only applies to temporary disks that are not NVMe temporary storage disks. | byte/s |
temp_disk_read_operations_sec_average |
The number of input operations read from the temporary disk per second. This only applies to temporary disks that are not NVMe temporary storage disks. | count/s |
temp_disk_write_bytes_sec_average |
The number of bytes written to the temporary disk per second. This only applies to temporary disks that are not NVMe temporary storage disks. | byte/s |
temp_disk_write_operations_sec_average |
The number of output operations written to the temporary disk per second. This only applies to temporary disks that are not NVMe temporary storage disks. | count/s |
vm_cached_bandwidth_consumed_percentage_average |
The percentage of VM cached bandwidth consumed. | % |
vm_cached_iops_consumed_percentage_average |
The percentage of VM cached IOPS consumed. | % |
vm_local_used_burst_bps_credits_percentage_average |
The percentage of locally used burst bps credits. | % |
vm_local_used_burst_io_credits_percentage_average |
The percentage of locally used burst IO credits. | % |
vm_remote_used_burst_bps_credits_percentage_average |
The percentage of remotely used burst bps credits. | % |
vm_remote_used_burst_io_credits_percentage_average |
The percentage of remotely used burst IO credits. | % |
vm_uncached_bandwidth_consumed_percentage_average |
The percentage of VM uncached bandwidth consumed. | % |
vm_uncached_iops_consumed_percentage_average |
The percentage of VM uncached IOPS consumed. | % |