Skip to content

Commit d29dde7

Browse files
committed
monitoring
1 parent 252efdd commit d29dde7

File tree

3 files changed

+29
-28
lines changed

3 files changed

+29
-28
lines changed
75.7 KB
Loading

articles/virtual-wan/monitor-virtual-wan-reference.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,7 @@ The following metric is available for virtual hub router within a virtual hub:
2828

2929
> [!NOTE]
3030
> As of March 28, 2024, the backend functionality for the Routing Infrastructure Units and Spoke VM Utilization metrics are still rolling out. As a result, even if you see these metrics displayed in Portal, the actual values of these metrics might appear as 0. The backend functionality of these metrics is aimed to finish rolling out within the next several weeks, which will ensure the proper values are emitted.
31-
>
32-
33-
#### PowerShell steps
34-
35-
To query, use the following example PowerShell commands. The necessary fields are explained below the example.
36-
37-
**Step 1:**
38-
39-
```azurepowershell-interactive
40-
$MetricInformation = Get-AzMetric -ResourceId "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Network/VirtualHubs/<VirtualHubName>" -MetricName "VirtualHubDataProcessed" -TimeGrain 00:05:00 -StartTime 2022-2-20T01:00:00Z -EndTime 2022-2-20T01:30:00Z -AggregationType Sum
41-
```
42-
43-
**Step 2:**
44-
45-
```azurepowershell-interactive
46-
$MetricInformation.Data
47-
```
48-
49-
* **Resource ID** - Your virtual hub's Resource ID can be found on the Azure portal. Navigate to the virtual hub page within vWAN and select **JSON View** under Essentials.
50-
51-
* **Metric Name** - Refers to the name of the metric you're querying, which in this case is called 'VirtualHubDataProcessed'. This metric shows all the data that the virtual hub router has processed in the selected time period of the hub.
52-
53-
* **Time Grain** - Refers to the frequency at which you want to see the aggregation. In the current command, you'll see a selected aggregated unit per 5 mins. You can select – 5M/15M/30M/1H/6H/12H and 1D.
54-
55-
* **Start Time and End Time** - This time is based on UTC. Ensure that you're entering UTC values when inputting these parameters. If these parameters aren't used, the past one hour's worth of data is shown by default.
56-
57-
* **Sum Aggregation Type** - The **sum** aggregation type shows you the total number of bytes that traversed the virtual hub router during a selected time period. For example, if you set the Time granularity to 5 minutes, each data point will correspond to the number of bytes sent in that 5 minute interval. To convert this to Gbps, you can divide this number by 37500000000. Based on the virtual hub's [capacity](hub-settings.md#capacity), the hub router can support between 3 Gbps and 50 Gbps. The **Max** and **Min** aggregation types aren't meaningful at this time.
58-
31+
>
5932
6033
### <a name="s2s-metrics"></a>Site-to-site VPN gateway metrics
6134

articles/virtual-wan/monitor-virtual-wan.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,34 @@ The following steps help you locate and view metrics:
5050

5151
1. To see metrics for the virtual hub router, you can select **Metrics** from the virtual hub **Overview** page.
5252

53+
:::image type="content" source="./media/monitor-virtual-wan-reference/hub-metrics.png" alt-text="Screenshot that shows the virtual hub page with the metrics button." lightbox="./media/monitor-virtual-wan-reference/hub-metrics.png":::
54+
55+
#### PowerShell steps
56+
57+
To query, use the following example PowerShell commands. The necessary fields are explained below the example.
58+
59+
**Step 1:**
60+
61+
```azurepowershell-interactive
62+
$MetricInformation = Get-AzMetric -ResourceId "/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Network/VirtualHubs/<VirtualHubName>" -MetricName "VirtualHubDataProcessed" -TimeGrain 00:05:00 -StartTime 2022-2-20T01:00:00Z -EndTime 2022-2-20T01:30:00Z -AggregationType Sum
63+
```
64+
65+
**Step 2:**
66+
67+
```azurepowershell-interactive
68+
$MetricInformation.Data
69+
```
70+
71+
* **Resource ID** - Your virtual hub's Resource ID can be found on the Azure portal. Navigate to the virtual hub page within vWAN and select **JSON View** under Essentials.
72+
73+
* **Metric Name** - Refers to the name of the metric you're querying, which in this case is called 'VirtualHubDataProcessed'. This metric shows all the data that the virtual hub router has processed in the selected time period of the hub.
74+
75+
* **Time Grain** - Refers to the frequency at which you want to see the aggregation. In the current command, you'll see a selected aggregated unit per 5 mins. You can select – 5M/15M/30M/1H/6H/12H and 1D.
76+
77+
* **Start Time and End Time** - This time is based on UTC. Ensure that you're entering UTC values when inputting these parameters. If these parameters aren't used, the past one hour's worth of data is shown by default.
78+
79+
* **Sum Aggregation Type** - The **sum** aggregation type shows you the total number of bytes that traversed the virtual hub router during a selected time period. For example, if you set the Time granularity to 5 minutes, each data point will correspond to the number of bytes sent in that 5 minute interval. To convert this to Gbps, you can divide this number by 37500000000. Based on the virtual hub's [capacity](hub-settings.md#capacity), the hub router can support between 3 Gbps and 50 Gbps. The **Max** and **Min** aggregation types aren't meaningful at this time.
80+
5381

5482
## Analyzing logs
5583

0 commit comments

Comments
 (0)