Skip to content

Commit e905d44

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into nat-terraform-qs
2 parents b28058f + d6ed3df commit e905d44

File tree

3 files changed

+157
-34
lines changed

3 files changed

+157
-34
lines changed

articles/spring-apps/enterprise/how-to-application-insights.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ zone_pivot_groups: spring-apps-tier-selection
1818
> With Spring Boot Native Image applications, use the [Azure Monitor OpenTelemetry Distro / Application Insights in Spring Boot native image Java application](https://aka.ms/AzMonSpringNative) project instead of the Application Insights Java agent.
1919
2020

21-
**This article applies to:** ✔️ Standard consumption and dedicated (Preview) ✔️ Basic/Standard ️ Enterprise
21+
**This article applies to:** ✔️ Standard consumption and dedicated (Preview) ✔️ Basic/Standard ️ Enterprise
2222

2323
This article explains how to monitor applications by using the Application Insights Java agent in Azure Spring Apps.
2424

@@ -49,47 +49,48 @@ When the **Application Insights** feature is enabled, you can:
4949
* In the navigation pane, select **Application Insights** to view the **Overview** page of Application Insights. The **Overview** page shows you an overview of all running applications.
5050
* Select **Application Map** to see the status of calls between applications.
5151

52-
:::image type="content" source="media/how-to-application-insights/insights-process-agent-map.png" alt-text="Screenshot of Azure portal Application Insights with Application map page showing." lightbox="media/how-to-application-insights/insights-process-agent-map.png":::
52+
:::image type="content" source="media/how-to-application-insights/insights-process-agent-map.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Application map page." lightbox="media/how-to-application-insights/insights-process-agent-map.png":::
5353

5454
* Select the link between customers-service and `petclinic` to see more details such as a query from SQL.
5555
* Select an endpoint to see all the applications making requests to the endpoint.
5656

5757
* In the navigation pane, select **Performance** to see the performance data of all applications' operations, dependencies, and roles.
5858

59-
:::image type="content" source="media/how-to-application-insights/insights-process-agent-performance.png" alt-text="Screenshot of Azure portal Application Insights with Performance page showing." lightbox="media/how-to-application-insights/insights-process-agent-performance.png":::
59+
:::image type="content" source="media/how-to-application-insights/insights-process-agent-performance.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Performance page." lightbox="media/how-to-application-insights/insights-process-agent-performance.png":::
6060

6161
* In the navigation pane, select **Failures** to see any unexpected failures or exceptions from your applications.
6262

63-
:::image type="content" source="media/how-to-application-insights/insights-process-agent-failures.png" alt-text="Screenshot of Azure portal Application Insights with Failures page showing." lightbox="media/how-to-application-insights/insights-process-agent-failures.png":::
63+
:::image type="content" source="media/how-to-application-insights/insights-process-agent-failures.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Failures page." lightbox="media/how-to-application-insights/insights-process-agent-failures.png":::
6464

6565
* In the navigation pane, select **Metrics** and select the namespace to see both Spring Boot metrics and custom metrics, if any.
6666

67-
:::image type="content" source="media/how-to-application-insights/insights-process-agent-metrics.png" alt-text="Screenshot of Azure portal Application Insights with Metrics page showing." lightbox="media/how-to-application-insights/insights-process-agent-metrics.png":::
67+
:::image type="content" source="media/how-to-application-insights/insights-process-agent-metrics.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Metrics page." lightbox="media/how-to-application-insights/insights-process-agent-metrics.png":::
68+
6869

6970
* In the navigation pane, select **Live Metrics** to see the real-time metrics for different dimensions.
7071

71-
:::image type="content" source="media/how-to-application-insights/petclinic-microservices-live-metrics.png" alt-text="Screenshot of Azure portal Application Insights with Live Metrics page showing." lightbox="media/how-to-application-insights/petclinic-microservices-live-metrics.png":::
72+
:::image type="content" source="media/how-to-application-insights/petclinic-microservices-live-metrics.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Live Metrics page." lightbox="media/how-to-application-insights/petclinic-microservices-live-metrics.png":::
7273

7374
* In the navigation pane, select **Availability** to monitor the availability and responsiveness of Web apps by creating [Availability tests in Application Insights](/previous-versions/azure/azure-monitor/app/monitor-web-app-availability).
7475

75-
:::image type="content" source="media/how-to-application-insights/petclinic-microservices-availability.png" alt-text="Screenshot of Azure portal Application Insights with Availability page showing." lightbox="media/how-to-application-insights/petclinic-microservices-availability.png":::
76+
:::image type="content" source="media/how-to-application-insights/petclinic-microservices-availability.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Availability page." lightbox="media/how-to-application-insights/petclinic-microservices-availability.png":::
7677

7778
* In the navigation pane, select **Logs** to view all applications' logs, or one application's logs when filtering by `cloud_RoleName`.
7879

79-
:::image type="content" source="media/how-to-application-insights/application-insights-application-logs.png" alt-text="Screenshot of Azure portal Application Insights with Logs page showing." lightbox="media/how-to-application-insights/application-insights-application-logs.png":::
80+
:::image type="content" source="media/how-to-application-insights/application-insights-application-logs.png" alt-text="Screenshot of the Azure portal that shows the Application Insights Logs page." lightbox="media/how-to-application-insights/application-insights-application-logs.png":::
8081

8182
## Manage Application Insights using the Azure portal
8283

8384
::: zone pivot="sc-standard"
8485

8586
Enable the Java In-Process Agent by using the following procedure.
8687

87-
1. Go to the **service | Overview** page of your service instance, then select **Application Insights** in the **Monitoring** section.
88+
1. Go to the **service | Overview** page of your service instance and then select **Application Insights** in the **Monitoring** section.
8889
1. Select **Enable Application Insights** to enable Application Insights in Azure Spring Apps.
8990
1. Select an existing instance of Application Insights or create a new one.
9091
1. When **Application Insights** is enabled, you can configure one optional sampling rate (default 10.0%).
9192

92-
:::image type="content" source="media/how-to-application-insights/insights-process-agent.png" alt-text="Screenshot of Azure portal Azure Spring Apps instance with Application Insights page showing and 'Enable Application Insights' checkbox highlighted." lightbox="media/how-to-application-insights/insights-process-agent.png":::
93+
:::image type="content" source="media/how-to-application-insights/insights-process-agent.png" alt-text="Screenshot of the Azure portal that shows the Azure Spring Apps instance with Application Insights page and Enable Application Insights checkbox highlighted." lightbox="media/how-to-application-insights/insights-process-agent.png":::
9394

9495
1. Select **Save** to save the change.
9596

@@ -107,7 +108,7 @@ You can use the Portal to check or update the current settings in Application In
107108
1. Select **Application Insights**.
108109
1. Enable Application Insights by selecting **Edit binding**, or the **Unbound** hyperlink.
109110

110-
:::image type="content" source="media/how-to-application-insights/application-insights-binding-enable.png" alt-text="Screenshot of Azure portal Azure Spring Apps instance with Application Insights page showing and drop-down menu visible with 'Edit binding' option.":::
111+
:::image type="content" source="media/how-to-application-insights/application-insights-binding-enable.png" alt-text="Screenshot of the Azure portal Azure that shows the Azure Spring Apps instance with the Application Insights page and the 'Edit binding' option.":::
111112

112113
1. Edit **Application Insights** or **Sampling rate**, then select **Save**.
113114

@@ -116,13 +117,13 @@ You can use the Portal to check or update the current settings in Application In
116117
1. Select **Application Insights**.
117118
1. Select **Unbind binding** to disable Application Insights.
118119

119-
:::image type="content" source="media/how-to-application-insights/application-insights-unbind-binding.png" alt-text="Screenshot of Azure portal Azure Spring Apps instance with Application Insights page showing and drop-down menu visible with 'Unbind binding' option.":::
120+
:::image type="content" source="media/how-to-application-insights/application-insights-unbind-binding.png" alt-text="Screenshot of the Azure portal that shows the Azure Spring Apps instance with the Application Insights page and the Unbind binding option.":::
120121

121122
### Change Application Insights Settings
122123

123124
Select the name under the *Application Insights* column to open the Application Insights section.
124125

125-
:::image type="content" source="media/how-to-application-insights/application-insights-change-settings.png" alt-text="Screenshot of Azure portal Azure Spring Apps instance with Application Insights page showing.":::
126+
:::image type="content" source="media/how-to-application-insights/application-insights-change-settings.png" alt-text="Screenshot of the Azure portal that shows the Azure Spring Apps instance with the Application Insights page.":::
126127

127128
### Edit Application Insights buildpack bindings in Build Service
128129

@@ -136,11 +137,11 @@ Application Insights settings are found in the *ApplicationInsights* item listed
136137

137138
1. Select the **Bound** hyperlink, or select **Edit Binding** under the ellipse, to open and edit the Application Insights buildpack bindings.
138139

139-
:::image type="content" source="media/how-to-application-insights/application-insights-builder-settings.png" alt-text="Screenshot of Azure portal 'Edit bindings for default builder' pane.":::
140+
:::image type="content" source="media/how-to-application-insights/application-insights-builder-settings.png" alt-text="Screenshot of the Azure portal that shows the Edit bindings for default builder pane.":::
140141

141142
1. Edit the binding settings, then select **Save**.
142143

143-
:::image type="content" source="media/how-to-application-insights/application-insights-edit-binding.png" alt-text="Screenshot of Azure portal 'Edit binding' pane.":::
144+
:::image type="content" source="media/how-to-application-insights/application-insights-edit-binding.png" alt-text="Screenshot of the Azure portal that shows the Edit binding pane.":::
144145

145146
::: zone-end
146147

@@ -171,7 +172,7 @@ az spring create \
171172
--resource-group <resource-group-name> \
172173
--name "service-instance-name" \
173174
--app-insights <name-or-resource-ID> \
174-
--sampling-rate <sampling-rate>
175+
--sampling-rate <sampling-rate> \
175176
--sku Enterprise
176177
```
177178

@@ -198,7 +199,7 @@ az spring create \
198199
--resource-group <resource-group-name> \
199200
--name <service-instance-name> \
200201
--app-insights-key <connection-string-or-instrumentation-key> \
201-
--sampling-rate <sampling-rate>
202+
--sampling-rate <sampling-rate> \
202203
--sku Enterprise
203204
```
204205

@@ -225,7 +226,7 @@ az spring create \
225226
az spring create \
226227
--resource-group <resource-group-name> \
227228
--name <service-instance-name> \
228-
--disable-app-insights
229+
--disable-app-insights \
229230
--sku Enterprise
230231
```
231232

@@ -328,7 +329,7 @@ az spring build-service builder buildpack-binding show \
328329
--resource-group <your-resource-group-name> \
329330
--service <your-service-instance-name> \
330331
--name <your-binding-name> \
331-
--builder-name <your-builder-name> \
332+
--builder-name <your-builder-name>
332333
```
333334

334335
To delete an Application Insights buildpack binding, use the following command:
@@ -338,7 +339,7 @@ az spring build-service builder buildpack-binding delete \
338339
--resource-group <your-resource-group-name> \
339340
--service <your-service-instance-name> \
340341
--name <your-binding-name> \
341-
--builder-name <your-builder-name> \
342+
--builder-name <your-builder-name>
342343
```
343344

344345
::: zone-end
@@ -491,12 +492,14 @@ The Java agent is updated/upgraded when the buildpack is updated.
491492

492493
## Java agent configuration hot-loading
493494

494-
Azure Spring Apps has enabled a hot-loading mechanism to adjust the settings of agent configuration without restart of applications.
495+
Azure Spring Apps has a hot-loading mechanism to adjust the settings of agent configuration without restart of applications.
496+
495497

496498
> [!NOTE]
497499
> The hot-loading mechanism has a delay in minutes.
498500
499-
* When the Java agent has been previously enabled, changes to the Application Insights instance and/or SamplingRate do NOT require applications to be restarted.
501+
* If the Java agent is already enabled, changes to the Application Insights instance or `SamplingRate` value don't require application restart.
502+
500503
* If you enable the Java agent, then you must restart applications.
501504
* When you disable the Java agent, applications stop sending all monitoring data after a delay in minutes. You can restart applications to remove the agent from the Java runtime environment.
502505

@@ -530,7 +533,6 @@ When data is stored in Application Insights, it contains the history of Azure Sp
530533

531534
## Next steps
532535

533-
* [Use Application Insights Java In-Process Agent in Azure Spring Apps](./how-to-application-insights.md)
534536
* [Analyze logs and metrics](diagnostic-services.md)
535537
* [Stream logs in real time](./how-to-log-streaming.md)
536538
* [Application Map](../../azure-monitor/app/app-map.md)

0 commit comments

Comments
 (0)