You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/virtual-machine-scale-sets-rolling-upgrade-custom-metrics.md
+239Lines changed: 239 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -365,6 +365,245 @@ if (Test-Path $scriptPath) {
365
365
366
366
For more response configuration examples, see [application health samples](https://github.com/Azure-Samples/application-health-samples)
367
367
368
+
### Verify and query custom metrics data
369
+
370
+
After configuring the application health extension to return custom metrics, you can verify that the custom metrics are being reported correctly and query the data from your Virtual Machine Scale Set instances.
371
+
372
+
> [!NOTE]
373
+
> The method for querying custom metrics differs between Uniform and Flexible orchestration modes. Uniform mode uses `az vmss get-instance-view`, while Flexible mode requires querying individual VMs using `az vm get-instance-view`.
The custom metrics are in the `message` field of the `ComponentStatus/CustomMetrics/succeeded` substatus.
435
+
436
+
##### [REST](#tab/rest-api)
437
+
438
+
```http
439
+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}/virtualMachines/{instanceId}/instanceView?api-version=2023-09-01
The custom metrics are in the `message` field of the `ComponentStatus/CustomMetrics/succeeded` substatus.
530
+
531
+
##### [REST](#tab/rest-api)
532
+
533
+
```http
534
+
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView?api-version=2023-09-01
0 commit comments