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
> 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.
19
19
20
20
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
22
22
23
23
This article explains how to monitor applications by using the Application Insights Java agent in Azure Spring Apps.
24
24
@@ -49,47 +49,48 @@ When the **Application Insights** feature is enabled, you can:
49
49
* 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.
50
50
* Select **Application Map** to see the status of calls between applications.
51
51
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":::
53
53
54
54
* Select the link between customers-service and `petclinic` to see more details such as a query from SQL.
55
55
* Select an endpoint to see all the applications making requests to the endpoint.
56
56
57
57
* In the navigation pane, select **Performance** to see the performance data of all applications' operations, dependencies, and roles.
58
58
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":::
60
60
61
61
* In the navigation pane, select **Failures** to see any unexpected failures or exceptions from your applications.
62
62
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":::
64
64
65
65
* In the navigation pane, select **Metrics** and select the namespace to see both Spring Boot metrics and custom metrics, if any.
66
66
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
+
68
69
69
70
* In the navigation pane, select **Live Metrics** to see the real-time metrics for different dimensions.
70
71
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":::
72
73
73
74
* 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).
74
75
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":::
76
77
77
78
* In the navigation pane, select **Logs** to view all applications' logs, or one application's logs when filtering by `cloud_RoleName`.
78
79
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":::
80
81
81
82
## Manage Application Insights using the Azure portal
82
83
83
84
::: zone pivot="sc-standard"
84
85
85
86
Enable the Java In-Process Agent by using the following procedure.
86
87
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.
88
89
1. Select **Enable Application Insights** to enable Application Insights in Azure Spring Apps.
89
90
1. Select an existing instance of Application Insights or create a new one.
90
91
1. When **Application Insights** is enabled, you can configure one optional sampling rate (default 10.0%).
91
92
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":::
93
94
94
95
1. Select **Save** to save the change.
95
96
@@ -107,7 +108,7 @@ You can use the Portal to check or update the current settings in Application In
107
108
1. Select **Application Insights**.
108
109
1. Enable Application Insights by selecting **Edit binding**, or the **Unbound** hyperlink.
109
110
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.":::
111
112
112
113
1. Edit **Application Insights** or **Sampling rate**, then select **Save**.
113
114
@@ -116,13 +117,13 @@ You can use the Portal to check or update the current settings in Application In
116
117
1. Select **Application Insights**.
117
118
1. Select **Unbind binding** to disable Application Insights.
118
119
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.":::
120
121
121
122
### Change Application Insights Settings
122
123
123
124
Select the name under the *Application Insights* column to open the Application Insights section.
124
125
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.":::
126
127
127
128
### Edit Application Insights buildpack bindings in Build Service
128
129
@@ -136,11 +137,11 @@ Application Insights settings are found in the *ApplicationInsights* item listed
136
137
137
138
1. Select the **Bound** hyperlink, or select **Edit Binding** under the ellipse, to open and edit the Application Insights buildpack bindings.
138
139
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.":::
140
141
141
142
1. Edit the binding settings, then select **Save**.
142
143
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.":::
@@ -328,7 +329,7 @@ az spring build-service builder buildpack-binding show \
328
329
--resource-group <your-resource-group-name> \
329
330
--service <your-service-instance-name> \
330
331
--name <your-binding-name> \
331
-
--builder-name <your-builder-name> \
332
+
--builder-name <your-builder-name>
332
333
```
333
334
334
335
To delete an Application Insights buildpack binding, use the following command:
@@ -338,7 +339,7 @@ az spring build-service builder buildpack-binding delete \
338
339
--resource-group <your-resource-group-name> \
339
340
--service <your-service-instance-name> \
340
341
--name <your-binding-name> \
341
-
--builder-name <your-builder-name> \
342
+
--builder-name <your-builder-name>
342
343
```
343
344
344
345
::: zone-end
@@ -491,12 +492,14 @@ The Java agent is updated/upgraded when the buildpack is updated.
491
492
492
493
## Java agent configuration hot-loading
493
494
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
+
495
497
496
498
> [!NOTE]
497
499
> The hot-loading mechanism has a delay in minutes.
498
500
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
+
500
503
* If you enable the Java agent, then you must restart applications.
501
504
* 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.
502
505
@@ -530,7 +533,6 @@ When data is stored in Application Insights, it contains the history of Azure Sp
530
533
531
534
## Next steps
532
535
533
-
*[Use Application Insights Java In-Process Agent in Azure Spring Apps](./how-to-application-insights.md)
534
536
*[Analyze logs and metrics](diagnostic-services.md)
535
537
*[Stream logs in real time](./how-to-log-streaming.md)
0 commit comments