Skip to content

Commit 8e5771a

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into nat-freshness-1
2 parents 8448fff + 78dcf45 commit 8e5771a

File tree

6 files changed

+71
-67
lines changed

6 files changed

+71
-67
lines changed

articles/azure-functions/create-first-function-vs-code-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
4747
|Prompt|Selection|
4848
|--|--|
4949
|**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. |
5151
| **Provide a group ID** | Choose `com.function`. |
5252
| **Provide an artifact ID** | Choose `myFunction`. |
5353
| **Provide a version** | Choose `1.0-SNAPSHOT`. |

articles/azure-functions/functions-create-first-java-gradle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article shows you how to build and publish a Java function project to Azure
2020

2121
To develop functions using Java, you must have the following installed:
2222

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)
2424
- [Azure CLI]
2525
- [Azure Functions Core Tools](./functions-run-local.md#v2) version 2.6.666 or above
2626
- [Gradle](https://gradle.org/), version 6.8 and above

articles/azure-functions/functions-create-maven-intellij.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Specifically, this article shows you:
2424
## Prerequisites
2525

2626
- 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)
2828
- An [IntelliJ IDEA](https://www.jetbrains.com/idea/download/) Ultimate Edition or Community Edition installed
2929
- [Maven 3.5.0+](https://maven.apache.org/download.cgi)
3030
- Latest [Function Core Tools](https://github.com/Azure/azure-functions-core-tools)

articles/nat-gateway/nat-metrics.md

Lines changed: 64 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
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.
55
author: asudbring
66
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
109
ms.author: allensu
10+
# Customer intent: As an IT administrator, I want to understand available Azure Monitor metrics and alerts for Virtual Network NAT.
1111
---
12-
# Azure NAT Gateway metrics and alerts
12+
# What is Azure NAT Gateway metrics and alerts?
1313

1414
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.
1515

@@ -19,7 +19,7 @@ Azure NAT Gateway provides the following diagnostic capabilities:
1919

2020
- 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.
2121

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":::
2323

2424
*Figure: Azure NAT Gateway for outbound to Internet*
2525

@@ -29,19 +29,19 @@ NAT gateway provides the following multi-dimensional metrics in Azure Monitor:
2929

3030
| Metric | Description | Recommended aggregation | Dimensions |
3131
|---|---|---|---|
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) |
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)** |
3434
| 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)** |
3838

3939
>[!NOTE]
4040
> 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.
4141
>
4242
> Use average for best represented health data for the datapath availability metric.
4343
>
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).
4545
4646
## Where to find my NAT gateway metrics
4747

@@ -61,18 +61,20 @@ To view any one of your metrics for a given NAT gateway resource:
6161

6262
1. Select the NAT gateway resource you would like to monitor.
6363

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

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

6868
:::image type="content" source="./media/nat-metrics/nat-metrics-1.png" alt-text="Screenshot of the metrics set up in NAT gateway resource.":::
6969

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

7272
:::image type="content" source="./media/nat-metrics/nat-metrics-2.png" alt-text="Screenshot of the metrics time setup configuration in NAT gateway resource.":::
7373

7474
## How to use NAT gateway metrics
7575

76+
The following sections detail how to use each NAT gateway metric to monitor, manage, and troubleshoot your NAT gateway resource.
77+
7678
### Bytes
7779

7880
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:
8587

8688
1. Select the NAT gateway resource you would like to monitor.
8789

88-
2. In the **Metric** drop-down menu, select the **Bytes** metric.
90+
1. In the **Metric** drop-down menu, select the **Bytes** metric.
8991

90-
3. In the **Aggregation** drop-down menu, select **Sum**.
92+
1. In the **Aggregation** drop-down menu, select **Sum**.
9193

92-
4. Select to **Add filter**.
94+
1. Select to **Add filter**.
9395

94-
5. In the **Property** drop-down menu, select **Direction (Out | In)**.
96+
1. In the **Property** drop-down menu, select **Direction (Out | In)**.
9597

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

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

100-
8. In the **Values** drop-down menu, select **Direction (Out | In)**.
102+
1. In the **Values** drop-down menu, select **Direction (Out | In)**.
101103

102104
### Packets
103105

@@ -141,19 +143,19 @@ To view the connection state of your connections:
141143

142144
1. Select the NAT gateway resource you would like to monitor.
143145

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

146-
3. In the **Aggregation** drop-down menu, select **Sum**.
148+
1. In the **Aggregation** drop-down menu, select **Sum**.
147149

148-
4. Select to **Add filter**.
150+
1. Select to **Add filter**.
149151

150-
5. In the **Property** drop-down menu, select **Connection State**.
152+
1. In the **Property** drop-down menu, select **Connection State**.
151153

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

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

156-
8. In the **Values** drop-down menu, select **Connection State**.
158+
1. In the **Values** drop-down menu, select **Connection State**.
157159

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

@@ -190,7 +192,7 @@ You can use this metric to:
190192

191193
Possible reasons for a drop in data path availability include:
192194

193-
- An infrastructure outage has occurred.
195+
- An infrastructure outage.
194196

195197
- 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).
196198

@@ -210,72 +212,75 @@ To set up a datapath availability alert, follow these steps:
210212

211213
1. From the NAT gateway resource page, select **Alerts**.
212214

213-
2. Select **Create alert rule**.
215+
1. Select **Create alert rule**.
214216

215-
3. From the signal list, select **Datapath Availability**.
217+
1. From the signal list, select **Datapath Availability**.
216218

217-
4. From the **Operator** drop-down menu, select **Less than**.
219+
1. From the **Operator** drop-down menu, select **Less than**.
218220

219-
5. From the **Aggregation type** drop-down menu, select **Average**.
221+
1. From the **Aggregation type** drop-down menu, select **Average**.
220222

221-
6. In the **Threshold value** box, enter **90%**.
223+
1. In the **Threshold value** box, enter **90%**.
222224

223-
7. From the **Unit** drop-down menu, select **Count**.
225+
1. From the **Unit** drop-down menu, select **Count**.
224226

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

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

229-
10. Before deploying your action, **test the action group**.
231+
1. Before deploying your action, **test the action group**.
230232

231-
11. Select **Create** to create the alert rule.
233+
1. Select **Create** to create the alert rule.
232234

233235
>[!NOTE]
234236
>Aggregation granularity is the period of time over which the datapath availability is measured to determine if it has dropped below the threshold value.
235237
Setting the aggregation granularity to less than 5 minutes may trigger false positive alerts that detect noise in the datapath.
236238

237239
### Alerts for SNAT port exhaustion
238240

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

241243
To create the alert, use the following steps:
242244

243245
1. From the NAT gateway resource page, select **Alerts**.
244246

245-
2. Select **Create alert rule**.
247+
1. Select **Create alert rule**.
246248

247-
3. From the signal list, select **SNAT Connection Count**.
249+
1. From the signal list, select **SNAT Connection Count**.
248250

249-
4. From the **Aggregation type** drop-down menu, select **Total**.
251+
1. From the **Aggregation type** drop-down menu, select **Total**.
250252

251-
5. From the **Operator** drop-down menu, select **Greater than**.
253+
1. From the **Operator** drop-down menu, select **Greater than**.
252254

253-
6. From the **Unit** drop-down menu, select **Count**.
255+
1. From the **Unit** drop-down menu, select **Count**.
254256

255-
7. In the **Threshold value** box, enter 0.
257+
1. In the **Threshold value** box, enter 0.
256258

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

259-
9. Under Dimension values, select **Failed** connections.
261+
1. Under Dimension values, select **Failed** connections.
260262

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

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

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

267-
10. Before deploying your action, **test the action group**.
269+
1. Before deploying your action, **test the action group**.
268270

269-
11. Select **Create** to create the alert rule.
271+
1. Select **Create** to create the alert rule.
270272

271273
>[!NOTE]
272274
>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).
273275
274276
### Alerts for NAT gateway resource health
275277

276278
[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:
279+
277280
* [Azure NAT Gateway Resource Health](/azure/nat-gateway/resource-health)
281+
278282
* [NAT Gateway Resource Health Alerts](/azure/nat-gateway/resource-health#resource-health-alerts)
283+
279284
* [How to create Resource Health Alerts in the Azure portal](/azure/service-health/resource-health-alert-monitor-guide)
280285

281286
## Network Insights
@@ -288,9 +293,9 @@ To view a topological map of your setup in Azure:
288293

289294
1. From your NAT gateway’s resource page, select **Insights** from the **Monitoring** section.
290295

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).
292297

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

295300
:::image type="content" source="./media/nat-metrics/nat-insights.png" alt-text="Screenshot of the Insights section of NAT gateway.":::
296301

@@ -308,11 +313,10 @@ The metrics dashboard can be used to better understand the performance and healt
308313

309314
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).
310315

311-
## More NAT gateway metrics guidance
312316

313317
### What type of metrics are available for NAT gateway?
314318

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

317321
Refer to the dimensions column in the [metrics overview](#metrics-overview) table to see which dimensions are available for each NAT gateway metric.
318322

@@ -325,7 +329,7 @@ All [platform metrics are stored](/azure/azure-monitor/essentials/data-platform-
325329
>
326330
>To retrieve NAT gateway metrics, use the metrics REST API.
327331
328-
### How interpret metrics charts
332+
### How to interpret metrics charts
329333

330334
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.
331335

0 commit comments

Comments
 (0)