Skip to content

Commit dec8608

Browse files
Merge pull request #215175 from aimee-littleton/patch-104
SNAT connection count
2 parents 2f7a26c + 168c60a commit dec8608

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

articles/virtual-network/nat-gateway/nat-metrics.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The dropped packets metric shows you the number of data packets dropped by NAT g
112112

113113
Use this metric to:
114114

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.
116116

117117
- Help assess if you're experiencing a pattern of failed outbound connections.
118118

@@ -122,15 +122,19 @@ Reasons for why you may see dropped packets:
122122

123123
### SNAT connection count
124124

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.
126126

127127
Use this metric to:
128128

129-
- Evaluate the number of successful and failed attempts to make outbound connections.
129+
- Evaluate the health of your outbound connections.
130130

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.
132134

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:
134138

135139
1. Select the NAT gateway resource you would like to monitor.
136140

@@ -150,21 +154,19 @@ To view the number of attempted and failed connections:
150154

151155
:::image type="content" source="./media/nat-metrics/nat-metrics-3.png" alt-text="Screenshot of the metrics configuration.":::
152156

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-
157157
### Total SNAT connection count
158158

159159
The **Total SNAT connection count** metric shows you the total number of active SNAT connections over a period of time.
160160

161161
You can use this metric to:
162162

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.
164164

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:
166168

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.
168170

169171
### Data path availability (Preview)
170172

@@ -224,27 +226,31 @@ To set up a datapath availability alert, follow these steps:
224226
>Aggregation granularity is the period of time over which the datapath availability is measured to determine if it has dropped below the threshold value.
225227
Setting the aggregation granularity to less than 5 minutes may trigger false positive alerts that detect noise in the datapath.
226228

227-
### Alerts for SNAT port usage
229+
### Alerts for SNAT port exhaustion
228230

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.
230232

231233
To create the alert, use the following steps:
232234

233235
1. From the NAT gateway resource page, select **Alerts**.
234236

235237
2. Select **Create alert rule**.
236238

237-
3. From the signal list, select **Total SNAT Connection Count**.
239+
3. From the signal list, select **SNAT Connection Count**.
238240

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**.
240242

241-
5. From the **Aggregation type** drop-down menu, select **Total**.
243+
5. From the **Operator** drop-down menu, select **Greater than**.
242244

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**.
244246

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.
246252

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.
248254

249255
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.
250256

@@ -253,7 +259,7 @@ To create the alert, use the following steps:
253259
11. Select **Create** to create the alert rule.
254260

255261
>[!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).
257263
258264
## Network Insights
259265

0 commit comments

Comments
 (0)