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-network/nat-gateway/nat-metrics.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ The dropped packets metric shows you the number of data packets dropped by NAT g
112
112
113
113
Use this metric to:
114
114
115
-
- Assess whether or not you're nearing or possibly experiencing SNAT exhaustion with a given NAT gateway resource. Check to see if periods of dropped packets coincide with periods of failed SNAT connections with the [Total SNAT Connection Count](#total-snat-connection-count) metric.
115
+
- Assess whether or not you're nearing or possibly experiencing SNAT exhaustion with a given NAT gateway resource. Check to see if periods of dropped packets coincide with periods of failed SNAT connections with the [SNAT Connection Count](#snat-connection-count) metric.
116
116
117
117
- Help assess if you're experiencing a pattern of failed outbound connections.
118
118
@@ -122,15 +122,19 @@ Reasons for why you may see dropped packets:
122
122
123
123
### SNAT connection count
124
124
125
-
The SNAT connection count metric shows you the number of new SNAT connections within a specified time frame.
125
+
The SNAT connection count metric shows you the number of new SNAT connections within a specified time frame. This metric can be broken out to view different connection states including: attempted, established, failed, closed, and timed out connections. A failed connection volume greater than zero may indicate SNAT port exhaustion.
126
126
127
127
Use this metric to:
128
128
129
-
- Evaluate the number of successful and failed attempts to make outbound connections.
129
+
- Evaluate the health of your outbound connections.
130
130
131
-
- Help assess if you're experiencing a pattern of failed outbound connections.
131
+
- Assess whether or not you're nearing or possibly experiencing SNAT port exhaustion.
132
+
133
+
- Evaluate whether your NAT gateway resource should be scaled out further by adding more public IPs.
132
134
133
-
To view the number of attempted and failed connections:
135
+
- Assess if you're experiencing a pattern of failed outbound connections.
136
+
137
+
To view the connection state of your connections:
134
138
135
139
1. Select the NAT gateway resource you would like to monitor.
136
140
@@ -150,21 +154,19 @@ To view the number of attempted and failed connections:
150
154
151
155
:::image type="content" source="./media/nat-metrics/nat-metrics-3.png" alt-text="Screenshot of the metrics configuration.":::
152
156
153
-
Reasons for why you may see failed connections:
154
-
155
-
- If you're seeing a pattern of failed connections for your NAT gateway resource, there could be multiple possible reasons. See the NAT gateway [troubleshooting guide](./troubleshoot-nat.md) to help you further diagnose.
156
-
157
157
### Total SNAT connection count
158
158
159
159
The **Total SNAT connection count** metric shows you the total number of active SNAT connections over a period of time.
160
160
161
161
You can use this metric to:
162
162
163
-
-Monitor SNAT port utilization on a given NAT gateway resource.
163
+
-Assess if you're nearing the connection limit of your NAT gateway resource.
164
164
165
-
- Analyze over a given time interval to provide insight on whether or not NAT gateway connectivity should be scaled out further by adding more public IPs.
165
+
- Help assess if you're experiencing a pattern of failed outbound connections.
166
+
167
+
Reasons for why you may see failed connections:
166
168
167
-
-Assess whether or not you're nearing or possibly experiencing SNAT exhaustion with a given NAT gateway resource.
169
+
-If you're seeing a pattern of failed connections for your NAT gateway resource, there could be multiple possible reasons. See the NAT gateway [troubleshooting guide](./troubleshoot-nat.md) to help you further diagnose.
168
170
169
171
### Data path availability (Preview)
170
172
@@ -224,27 +226,31 @@ To set up a datapath availability alert, follow these steps:
224
226
>Aggregation granularity is the period of time over which the datapath availability is measured to determine if it has dropped below the threshold value.
225
227
Setting the aggregation granularity to less than 5 minutes may trigger false positive alerts that detect noise in the datapath.
226
228
227
-
### Alerts for SNAT port usage
229
+
### Alerts for SNAT port exhaustion
228
230
229
-
Use the total **SNAT connection count** metric and alerts for when you're nearing the limits of available SNAT ports.
231
+
Use the **SNAT connection count** metric and alerts to help determine if you're experiencing SNAT port exhaustion. A failed connection volume greater than zero may indicate SNAT port exhaustion. You may need to investigate further to determine the root cause of these failures.
230
232
231
233
To create the alert, use the following steps:
232
234
233
235
1. From the NAT gateway resource page, select **Alerts**.
234
236
235
237
2. Select **Create alert rule**.
236
238
237
-
3. From the signal list, select **Total SNAT Connection Count**.
239
+
3. From the signal list, select **SNAT Connection Count**.
238
240
239
-
4. From the **Operator** drop-down menu, select **Less than or equal to**.
241
+
4. From the **Aggregation type** drop-down menu, select **Total**.
240
242
241
-
5. From the **Aggregation type** drop-down menu, select **Total**.
243
+
5. From the **Operator** drop-down menu, select **Greater than**.
242
244
243
-
6.In the **Threshold value**box, enter a percentage value that the Total SNAT connection count must drop below before an alert is fired. When deciding what threshold value to use, keep in mind how much you've scaled out your NAT gateway outbound connectivity with public IP addresses. For more information, see [Scale NAT gateway](./nat-gateway-resource.md#scalability).
245
+
6.From the **Unit** drop-down menu, select **Count**.
244
246
245
-
7. From the **Unit** drop-down menu, select **Count**.
247
+
7. In the **Threshold value** box, enter 0.
248
+
249
+
8. In the Split by dimensions section, select **Connection State** under Dimension name.
250
+
251
+
9. Under Dimension values, select **Failed** connections.
246
252
247
-
8. From the **Aggregation granularity (Period)** drop-down menu, select a time period over which you would like the SNAT connection count to be measured.
253
+
8. From the When to evaluate section, select **1 minute** under the **Check every** drop-down menu.
248
254
249
255
9. Create an **Action** for your alert by providing a name, notification type, and type of action that is performed when the alert is triggered.
250
256
@@ -253,7 +259,7 @@ To create the alert, use the following steps:
253
259
11. Select **Create** to create the alert rule.
254
260
255
261
>[!NOTE]
256
-
>SNAT exhaustion on your NAT gateway resource is uncommon. If you see SNAT exhaustion, your NAT gateway's idle timeout timer may be holding on to SNAT ports too long or your may need to scale with additional public IPs. To troubleshoot these kinds of issues, refer to the NAT gateway [troubleshooting guide](./troubleshoot-nat.md).
262
+
>SNAT port exhaustion on your NAT gateway resource is uncommon. If you see SNAT port exhaustion, your NAT gateway's idle timeout timer may be holding on to SNAT ports too long or your may need to scale with additional public IPs. To troubleshoot these kinds of issues, refer to the [NAT gateway connectivity troubleshooting guide](/azure/virtual-network/nat-gateway/troubleshoot-nat-connectivity#snat-exhaustion-due-to-nat-gateway-configuration).
0 commit comments