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/azure-functions/create-first-function-vs-code-java.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
47
47
|Prompt|Selection|
48
48
|--|--|
49
49
|**Select a language**| Choose `Java`.|
50
-
|**Select a version of Java**| Choose `Java 11`or `Java 8`, the Java version on which your functions run in Azure. Choose a Java version that you've verified locally. |
50
+
|**Select a version of Java**| Choose `Java 8`, `Java 11`, `Java 17`or `Java 21`, the Java version on which your functions run in Azure. Choose a Java version that you've verified locally. |
51
51
|**Provide a group ID**| Choose `com.function`. |
52
52
|**Provide an artifact ID**| Choose `myFunction`. |
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-create-first-java-gradle.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ This article shows you how to build and publish a Java function project to Azure
20
20
21
21
To develop functions using Java, you must have the following installed:
22
22
23
-
-[Java Developer Kit](/azure/developer/java/fundamentals/java-support-on-azure), version 8
23
+
-[Java Developer Kit](/azure/developer/java/fundamentals/java-support-on-azure), version 8, 11, 17 or 21. (Java 21 is currently supported in preview on Linux only)
24
24
-[Azure CLI]
25
25
-[Azure Functions Core Tools](./functions-run-local.md#v2) version 2.6.666 or above
26
26
-[Gradle](https://gradle.org/), version 6.8 and above
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-create-maven-intellij.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Specifically, this article shows you:
24
24
## Prerequisites
25
25
26
26
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
27
-
- An [Azure supported Java Development Kit (JDK)](/azure/developer/java/fundamentals/java-support-on-azure) for Java, version 8, 11, or 17
27
+
- An [Azure supported Java Development Kit (JDK)](/azure/developer/java/fundamentals/java-support-on-azure), version 8, 11, 17 or 21. (Java 21 is currently only supported in preview on Linux only)
28
28
- An [IntelliJ IDEA](https://www.jetbrains.com/idea/download/) Ultimate Edition or Community Edition installed
Copy file name to clipboardExpand all lines: articles/nat-gateway/nat-metrics.md
+64-60Lines changed: 64 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
title: Metrics and alerts for Azure NAT Gateway
3
-
titleSuffix: Azure Virtual Network
4
-
description: Understand Azure Monitor metrics and alerts available for NAT gateway.
3
+
titleSuffix: Azure NAT Gateway
4
+
description: Get started learning about Azure Monitor metrics and alerts available for monitoring Azure NAT Gateway.
5
5
author: asudbring
6
6
ms.service: nat-gateway
7
-
# Customer intent: As an IT administrator, I want to understand available Azure Monitor metrics and alerts for Virtual Network NAT.
8
-
ms.topic: conceptual
9
-
ms.date: 04/12/2022
7
+
ms.topic: how-to
8
+
ms.date: 01/30/2024
10
9
ms.author: allensu
10
+
# Customer intent: As an IT administrator, I want to understand available Azure Monitor metrics and alerts for Virtual Network NAT.
11
11
---
12
-
# Azure NAT Gateway metrics and alerts
12
+
# What is Azure NAT Gateway metrics and alerts?
13
13
14
14
This article provides an overview of all NAT gateway metrics and diagnostic capabilities. This article provides general guidance on how to use metrics and alerts to monitor, manage, and [troubleshoot](troubleshoot-nat.md) your NAT gateway resource.
15
15
@@ -19,7 +19,7 @@ Azure NAT Gateway provides the following diagnostic capabilities:
19
19
20
20
- Network Insights: Azure Monitor Insights provides you with visual tools to view, monitor, and assist you in diagnosing issues with your NAT gateway resource. Insights provide you with a topological map of your Azure setup and metrics dashboards.
21
21
22
-
:::image type="content" source="./media/nat-overview/flow-direction1.png" alt-text="Diagram of a NAT gateway that consumes all IP addresses for a public IP prefix. The NAT gateway directs traffic to and from two subnets of VMs and a virtual machine scale set.":::
22
+
:::image type="content" source="./media/nat-overview/flow-direction1.png" alt-text="Diagram of a NAT gateway uses all IP addresses for a public IP prefix. The NAT gateway directs traffic between subnets of VMs and a virtual machine scale set":::
23
23
24
24
*Figure: Azure NAT Gateway for outbound to Internet*
25
25
@@ -29,19 +29,19 @@ NAT gateway provides the following multi-dimensional metrics in Azure Monitor:
| Bytes | Bytes processed inbound and outbound | Sum | Direction (In; Out), Protocol (6 TCP; 17 UDP) |
33
-
| Packets | Packets processed inbound and outbound | Sum | Direction (In; Out), Protocol (6 TCP; 17 UDP) |
32
+
| Bytes | Bytes processed inbound and outbound | Sum |**Direction (In; Out)**, **Protocol (6 TCP; 17 UDP)**|
33
+
| Packets | Packets processed inbound and outbound | Sum |**Direction (In; Out)**, **Protocol (6 TCP; 17 UDP)**|
34
34
| Dropped Packets | Packets dropped by the NAT gateway | Sum | / |
35
-
| SNAT Connection Count | Number of new SNAT connections over a given interval of time | Sum | Connection State (Attempted, Failed), Protocol (6 TCP; 17 UDP) |
36
-
| Total SNAT Connection Count | Total number of active SNAT connections | Sum | Protocol (6 TCP; 17 UDP) |
37
-
| Datapath Availability | Availability of the data path of the NAT gateway. Used to determine whether the NAT gateway endpoints are available for outbound traffic flow. | Avg | Availability (0, 100) |
35
+
| SNAT Connection Count | Number of new SNAT connections over a given interval of time | Sum |**Connection State (Attempted, Failed)**, **Protocol (6 TCP; 17 UDP)**|
36
+
| Total SNAT Connection Count | Total number of active SNAT connections | Sum |**Protocol (6 TCP; 17 UDP)**|
37
+
| Datapath Availability | Availability of the data path of the NAT gateway. Used to determine whether the NAT gateway endpoints are available for outbound traffic flow. | Avg |**Availability (0, 100)**|
38
38
39
39
>[!NOTE]
40
40
> Count aggregation is not recommended for any of the NAT gateway metrics. Count aggregation adds up the number of metric values and not the metric values themselves. Use Sum aggregation instead to get the best representation of data values for connection count, bytes, and packets metrics.
41
41
>
42
42
> Use average for best represented health data for the datapath availability metric.
43
43
>
44
-
> See [aggregation types](/azure/azure-monitor/essentials/metrics-aggregation-explained#aggregation-types) for more information.
44
+
> For information about aggregation types, see [aggregation types](/azure/azure-monitor/essentials/metrics-aggregation-explained#aggregation-types).
45
45
46
46
## Where to find my NAT gateway metrics
47
47
@@ -61,18 +61,20 @@ To view any one of your metrics for a given NAT gateway resource:
61
61
62
62
1. Select the NAT gateway resource you would like to monitor.
63
63
64
-
2. In the **Metric** drop-down menu, select one of the provided metrics.
64
+
1. In the **Metric** drop-down menu, select one of the provided metrics.
65
65
66
-
3. In the **Aggregation** drop-down menu, select the recommended aggregation listed in the [metrics overview](#metrics-overview) table.
66
+
1. In the **Aggregation** drop-down menu, select the recommended aggregation listed in the [metrics overview](#metrics-overview) table.
67
67
68
68
:::image type="content" source="./media/nat-metrics/nat-metrics-1.png" alt-text="Screenshot of the metrics set up in NAT gateway resource.":::
69
69
70
-
4. To adjust the time frame over which the chosen metric is presented on the metrics graph or to adjust how frequently the chosen metric is measured, select the **Time** window in the top right corner of the metrics page and make your adjustments.
70
+
1. To adjust the time frame over which the chosen metric is presented on the metrics graph or to adjust how frequently the chosen metric is measured, select the **Time** window in the top right corner of the metrics page and make your adjustments.
71
71
72
72
:::image type="content" source="./media/nat-metrics/nat-metrics-2.png" alt-text="Screenshot of the metrics time setup configuration in NAT gateway resource.":::
73
73
74
74
## How to use NAT gateway metrics
75
75
76
+
The following sections detail how to use each NAT gateway metric to monitor, manage, and troubleshoot your NAT gateway resource.
77
+
76
78
### Bytes
77
79
78
80
The **Bytes** metric shows you the amount of data going outbound through NAT gateway and returning inbound in response to an outbound connection.
@@ -85,19 +87,19 @@ To view the amount of data passing through NAT gateway:
85
87
86
88
1. Select the NAT gateway resource you would like to monitor.
87
89
88
-
2. In the **Metric** drop-down menu, select the **Bytes** metric.
90
+
1. In the **Metric** drop-down menu, select the **Bytes** metric.
89
91
90
-
3. In the **Aggregation** drop-down menu, select **Sum**.
92
+
1. In the **Aggregation** drop-down menu, select **Sum**.
91
93
92
-
4. Select to **Add filter**.
94
+
1. Select to **Add filter**.
93
95
94
-
5. In the **Property** drop-down menu, select **Direction (Out | In)**.
96
+
1. In the **Property** drop-down menu, select **Direction (Out | In)**.
95
97
96
-
6. In the **Values** drop-down menu, select **Out**, **In**, or both.
98
+
1. In the **Values** drop-down menu, select **Out**, **In**, or both.
97
99
98
-
7. To see data processed inbound or outbound as their own individual lines in the metric graph, select **Apply splitting**.
100
+
1. To see data processed inbound or outbound as their own individual lines in the metric graph, select **Apply splitting**.
99
101
100
-
8. In the **Values** drop-down menu, select **Direction (Out | In)**.
102
+
1. In the **Values** drop-down menu, select **Direction (Out | In)**.
101
103
102
104
### Packets
103
105
@@ -141,19 +143,19 @@ To view the connection state of your connections:
141
143
142
144
1. Select the NAT gateway resource you would like to monitor.
143
145
144
-
2. In the **Metric** drop-down menu, select the **SNAT Connection Count** metric.
146
+
1. In the **Metric** drop-down menu, select the **SNAT Connection Count** metric.
145
147
146
-
3. In the **Aggregation** drop-down menu, select **Sum**.
148
+
1. In the **Aggregation** drop-down menu, select **Sum**.
147
149
148
-
4. Select to **Add filter**.
150
+
1. Select to **Add filter**.
149
151
150
-
5. In the **Property** drop-down menu, select **Connection State**.
152
+
1. In the **Property** drop-down menu, select **Connection State**.
151
153
152
-
6. In the **Values** drop-down menu, select **Attempted**, **Failed**, or both.
154
+
1. In the **Values** drop-down menu, select **Attempted**, **Failed**, or both.
153
155
154
-
7. To see attempted and failed connections as their own individual lines in the metric graph, select **Apply splitting**.
156
+
1. To see attempted and failed connections as their own individual lines in the metric graph, select **Apply splitting**.
155
157
156
-
8. In the **Values** drop-down menu, select **Connection State**.
158
+
1. In the **Values** drop-down menu, select **Connection State**.
157
159
158
160
:::image type="content" source="./media/nat-metrics/nat-metrics-3.png" alt-text="Screenshot of the metrics configuration.":::
159
161
@@ -190,7 +192,7 @@ You can use this metric to:
190
192
191
193
Possible reasons for a drop in data path availability include:
192
194
193
-
- An infrastructure outage has occurred.
195
+
- An infrastructure outage.
194
196
195
197
- There aren't healthy VMs available in your NAT gateway configured subnet. For more information, see the [NAT gateway connectivity troubleshooting guide](/azure/nat-gateway/troubleshoot-nat-connectivity).
196
198
@@ -210,72 +212,75 @@ To set up a datapath availability alert, follow these steps:
210
212
211
213
1. From the NAT gateway resource page, select **Alerts**.
212
214
213
-
2. Select **Create alert rule**.
215
+
1. Select **Create alert rule**.
214
216
215
-
3. From the signal list, select **Datapath Availability**.
217
+
1. From the signal list, select **Datapath Availability**.
216
218
217
-
4. From the **Operator** drop-down menu, select **Less than**.
219
+
1. From the **Operator** drop-down menu, select **Less than**.
218
220
219
-
5. From the **Aggregation type** drop-down menu, select **Average**.
221
+
1. From the **Aggregation type** drop-down menu, select **Average**.
220
222
221
-
6. In the **Threshold value** box, enter **90%**.
223
+
1. In the **Threshold value** box, enter **90%**.
222
224
223
-
7. From the **Unit** drop-down menu, select **Count**.
225
+
1. From the **Unit** drop-down menu, select **Count**.
224
226
225
-
8. From the **Aggregation granularity (Period)** drop-down menu, select **15 minutes**.
227
+
1. From the **Aggregation granularity (Period)** drop-down menu, select **15 minutes**.
226
228
227
-
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.
229
+
1. Create an **Action** for your alert by providing a name, notification type, and type of action that is performed when the alert is triggered.
228
230
229
-
10. Before deploying your action, **test the action group**.
231
+
1. Before deploying your action, **test the action group**.
230
232
231
-
11. Select **Create** to create the alert rule.
233
+
1. Select **Create** to create the alert rule.
232
234
233
235
>[!NOTE]
234
236
>Aggregation granularity is the period of time over which the datapath availability is measured to determine if it has dropped below the threshold value.
235
237
Setting the aggregation granularity to less than 5 minutes may trigger false positive alerts that detect noise in the datapath.
236
238
237
239
### Alerts for SNAT port exhaustion
238
240
239
-
Set up an alert on the **SNAT connection count** metric to notify you of connection failures on your NAT gateway. A failed connection volume greater than zero can indicate that either you have reached the connection limit on your NAT gateway or that you have hit SNAT port exhaustion. Investigate further to determine the root cause of these failures.
241
+
Set up an alert on the **SNAT connection count** metric to notify you of connection failures on your NAT gateway. A failed connection volume greater than zero can indicate that you reached the connection limit on your NAT gateway or that you hit SNAT port exhaustion. Investigate further to determine the root cause of these failures.
240
242
241
243
To create the alert, use the following steps:
242
244
243
245
1. From the NAT gateway resource page, select **Alerts**.
244
246
245
-
2. Select **Create alert rule**.
247
+
1. Select **Create alert rule**.
246
248
247
-
3. From the signal list, select **SNAT Connection Count**.
249
+
1. From the signal list, select **SNAT Connection Count**.
248
250
249
-
4. From the **Aggregation type** drop-down menu, select **Total**.
251
+
1. From the **Aggregation type** drop-down menu, select **Total**.
250
252
251
-
5. From the **Operator** drop-down menu, select **Greater than**.
253
+
1. From the **Operator** drop-down menu, select **Greater than**.
252
254
253
-
6. From the **Unit** drop-down menu, select **Count**.
255
+
1. From the **Unit** drop-down menu, select **Count**.
254
256
255
-
7. In the **Threshold value** box, enter 0.
257
+
1. In the **Threshold value** box, enter 0.
256
258
257
-
8. In the Split by dimensions section, select **Connection State** under Dimension name.
259
+
1. In the Split by dimensions section, select **Connection State** under Dimension name.
258
260
259
-
9. Under Dimension values, select **Failed** connections.
261
+
1. Under Dimension values, select **Failed** connections.
260
262
261
-
8. From the When to evaluate section, select **1 minute** under the **Check every** drop-down menu.
263
+
1. From the When to evaluate section, select **1 minute** under the **Check every** drop-down menu.
262
264
263
-
9. For the lookback period, select **5 minutes** from the drop-down menu options.
265
+
1. For the lookback period, select **5 minutes** from the drop-down menu options.
264
266
265
-
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.
267
+
1. Create an **Action** for your alert by providing a name, notification type, and type of action that is performed when the alert is triggered.
266
268
267
-
10. Before deploying your action, **test the action group**.
269
+
1. Before deploying your action, **test the action group**.
268
270
269
-
11. Select **Create** to create the alert rule.
271
+
1. Select **Create** to create the alert rule.
270
272
271
273
>[!NOTE]
272
274
>SNAT port exhaustion on your NAT gateway resource is uncommon. If you see SNAT port exhaustion, check if NAT gateway's idle timeout timer is set higher than the default amount of 4 minutes. A long idle timeout timer seeting can cause SNAT ports too be in hold down for longer, which results in exhausting SNAT port inventory sooner. You can also scale your NAT gateway with additional public IPs to increase NAT gateway's overall SNAT port inventory. To troubleshoot these kinds of issues, refer to the [NAT gateway connectivity troubleshooting guide](/azure/nat-gateway/troubleshoot-nat-connectivity#snat-exhaustion-due-to-nat-gateway-configuration).
273
275
274
276
### Alerts for NAT gateway resource health
275
277
276
278
[Azure Resource Health](/azure/service-health/overview) provides information on the health state of your NAT gateway resource. The resource health of your NAT gateway is evaluated by measuring the datapath availability of your NAT gateway endpoint. You can set up alerts to notify you when the health state of your NAT gateway resource changes. To learn more about NAT gateway resource health and setting up alerts, see:
*[NAT Gateway Resource Health Alerts](/azure/nat-gateway/resource-health#resource-health-alerts)
283
+
279
284
*[How to create Resource Health Alerts in the Azure portal](/azure/service-health/resource-health-alert-monitor-guide)
280
285
281
286
## Network Insights
@@ -288,9 +293,9 @@ To view a topological map of your setup in Azure:
288
293
289
294
1. From your NAT gateway’s resource page, select **Insights** from the **Monitoring** section.
290
295
291
-
2. On the landing page for **Insights**, there's a topology map of your NAT gateway setup. This map shows the relationship between the different components of your network (subnets, virtual machines, public IP addresses).
296
+
1. On the landing page for **Insights**, there's a topology map of your NAT gateway setup. This map shows the relationship between the different components of your network (subnets, virtual machines, public IP addresses).
292
297
293
-
3. Hover over any component in the topology map to view configuration information.
298
+
1. Hover over any component in the topology map to view configuration information.
294
299
295
300
:::image type="content" source="./media/nat-metrics/nat-insights.png" alt-text="Screenshot of the Insights section of NAT gateway.":::
296
301
@@ -308,11 +313,10 @@ The metrics dashboard can be used to better understand the performance and healt
308
313
309
314
For more information on what each metric is showing you and how to analyze these metrics, see [How to use NAT gateway metrics](#how-to-use-nat-gateway-metrics).
310
315
311
-
## More NAT gateway metrics guidance
312
316
313
317
### What type of metrics are available for NAT gateway?
314
318
315
-
NAT gateway has[multi-dimensional metrics](/azure/azure-monitor/essentials/data-platform-metrics#multi-dimensional-metrics). Multi-dimensional metrics can be filtered by different dimensions in order to provide greater insight on the data provided. The [SNAT connection count](#snat-connection-count) metric can be filtered by Attempted and Failed connections in order to distinguish between the different types of connections being made by NAT gateway.
319
+
The NAT gateway supports[multi-dimensional metrics](/azure/azure-monitor/essentials/data-platform-metrics#multi-dimensional-metrics). You can filter the multi-dimensional metrics by different dimensions to gain greater insight into the provided data. The [SNAT connection count](#snat-connection-count) metric allows you to filter the connections by Attempted and Failed connections, enabling you to distinguish between different types of connections made by the NAT gateway.
316
320
317
321
Refer to the dimensions column in the [metrics overview](#metrics-overview) table to see which dimensions are available for each NAT gateway metric.
318
322
@@ -325,7 +329,7 @@ All [platform metrics are stored](/azure/azure-monitor/essentials/data-platform-
325
329
>
326
330
>To retrieve NAT gateway metrics, use the metrics REST API.
327
331
328
-
### How interpret metrics charts
332
+
### How to interpret metrics charts
329
333
330
334
Refer to [troubleshooting metrics charts](/azure/azure-monitor/essentials/metrics-troubleshoot) if you run into issues with creating, customizing or interpreting charts in Azure metrics explorer.
0 commit comments