Skip to content

Commit 185e52e

Browse files
SNAT connection count
1 parent 4a2eb1a commit 185e52e

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

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

Lines changed: 25 additions & 19 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 such as Attempted, Established, Failed, Closed, and Timed Out connections.
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.
130+
131+
- Assess whether or not you're nearing or possibly experiencing SNAT exhaustion with a given NAT gateway resource.
132+
133+
- Evaluate whether your NAT gateway resource should be scaled out further by adding more public IPs.
130134

131135
- Help assess if you're experiencing a pattern of failed outbound connections.
132136

133-
To view the number of attempted and failed connections:
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 are 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.
166166

167-
- Assess whether or not you're nearing or possibly experiencing SNAT exhaustion with a given NAT gateway resource.
167+
Reasons for why you may see failed connections:
168+
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 outbound availability
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 are experiencing SNAT port exhaustion. A failed connection volume greather than zero could inidicate 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. In the When to evaluate section, select **1 minute** from 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

0 commit comments

Comments
 (0)