Azure Virtual Machines¶
Collect Azure Virtual Machines Metrics.
Configuration¶
Install Func¶
It is recommended to activate the TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.
If deploying Func manually, refer to Manual Deployment of Func
It is recommended to deploy the 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 monitoring data for Azure Virtual Machines, 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 that it is not the IDSubscriptions
: Subscription ID, multiple subscriptions separated by,
Click 【Deploy Startup Script】, the system will automatically create the Startup
script set and configure the corresponding startup script.
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 short while, you can check the execution task records and corresponding logs.
We have collected some configurations by default, see the Metrics section for details.
Configure Custom Cloud Object Metrics
Verification¶
- Confirm in 「Manage / Automatic Trigger Configuration」 whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions.
- In TrueWatch, check if the asset information exists in 「Infrastructure / Custom」.
- In TrueWatch, check if the corresponding monitoring data exists in 「Metrics」.
Metrics¶
After configuring Azure Virtual Machines monitoring data, the default Measurement is 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 on the VM, in bytes. | byte |
cpu_credits_consumed_average |
The total number of CPU credits consumed by the VM. This is only applicable to B-series burstable VMs. | count |
cpu_credits_remaining_average |
The total number of CPU credits available for bursting. This is only applicable 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 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 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 VM. | byte |
network_out_total |
The total network traffic exiting the VM. | byte |
os_disk_bandwidth_consumed_percentage_average |
The percentage of OS disk bandwidth consumed per minute. This is only applicable to VM series that support premium storage. | % |
os_disk_iops_consumed_percentage_average |
The percentage of OS disk I/Os consumed per minute. This is only applicable 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 is only applicable to disks attached to the VM using SCSI disk controllers and not applicable to disks using NVMe disk controllers. | 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 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 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 used by the VM. | % |
temp_disk_latency_average |
The average time taken to complete each IO on the temporary disk during the monitoring period, in milliseconds. This is only applicable 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 is only applicable 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 is only applicable 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 is only applicable 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 is only applicable 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 is only applicable to temporary disks that are not NVMe temporary storage disks. | count/s |
vm_cached_bandwidth_consumed_percentage_average |
The percentage of cached bandwidth consumed by the VM. | % |
vm_cached_iops_consumed_percentage_average |
The percentage of cached IOPS consumed by the VM. | % |
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 uncached bandwidth consumed by the VM. | % |
vm_uncached_iops_consumed_percentage_average |
The percentage of uncached IOPS consumed by the VM. | % |