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/spring-apps/enterprise/concept-manage-monitor-app-spring-boot-actuator.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,15 @@ To view all the endpoints built-in and related configurations, see the [Exposing
64
64
65
65
### Secure actuator endpoint
66
66
67
-
When you open the app to the public, these actuator endpoints are exposed to the public as well. We recommend that you hide all endpoints by setting `management.endpoints.web.exposure.exclude=*`, because the `exclude` property takes precedence over the `include` property. Be aware that this action blocks Application Live View in the Enterprise plan and other apps or tools that rely on the actuator HTTP endpoint.
67
+
When you open the app to the public, these actuator endpoints are exposed to the public as well. We recommend that you hide all endpoints by setting `management.endpoints.web.exposure.exclude=*`, because the `exclude` property takes precedence over the `include` property. This action blocks Application Live View in the Enterprise plan and other apps or tools that rely on the actuator HTTP endpoint.
68
68
69
-
In the Enterprise plan, you can disable the public endpoint of apps and configure a routing rule in VMware Spring Cloud Gateway to disable actuator access from the public. For more information, see [Configure VMware Spring Cloud Gateway](./how-to-configure-enterprise-spring-cloud-gateway.md).
69
+
In the Enterprise plan, there are two ways to secure the access:
70
+
71
+
- You can disable the public endpoint of apps and configure a routing rule in VMware Spring Cloud Gateway to disable actuator access from the public. For more information, see [Configure VMware Spring Cloud Gateway](./how-to-configure-enterprise-spring-cloud-gateway.md).
72
+
73
+
- You can configure the actuator to listen on a different HTTP port from the main application. In a standalone application, the actuator HTTP port defaults to the same as the main HTTP port. For the application to listen on a different port, set the `management.server.port` property. The Application Live View is unable to automatically detect this port change, so you also need to configure the property on an Azure Spring Apps deployment. Then, the actuator isn't publically accessible, but the Application Live View can read from the actuator endpoint via another port. For more information, see [Use Application Live View with the Azure Spring Apps Enterprise plan](./how-to-use-application-live-view.md).
70
74
71
75
## Next steps
72
76
73
-
*[Metrics for Azure Spring Apps](./concept-metrics.md)
74
-
*[App status in Azure Spring Apps](./concept-app-status.md)
77
+
-[Metrics for Azure Spring Apps](./concept-metrics.md)
78
+
-[App status in Azure Spring Apps](./concept-app-status.md)
Copy file name to clipboardExpand all lines: articles/spring-apps/enterprise/how-to-use-application-live-view.md
+46-13Lines changed: 46 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,11 +118,11 @@ You can monitor Application Live View using the Azure portal or Azure CLI.
118
118
119
119
You can view the state of Application Live View in the Azure portal on the **Overview** tab of the **Developer Tools** page.
120
120
121
-
:::image type="content" source="media/how-to-use-application-live-view/application-live-view-enabled.png" alt-text="Screenshot of the Developer Tools page showing the Overview tab." lightbox="media/how-to-use-application-live-view/application-live-view-enabled.png":::
121
+
:::image type="content" source="media/how-to-use-application-live-view/application-live-view-enabled.png" alt-text="Screenshot of the Azure portal that shows the Developer Tools page Overview tab." lightbox="media/how-to-use-application-live-view/application-live-view-enabled.png":::
122
122
123
123
### [Azure CLI](#tab/Azure-CLI)
124
124
125
-
Use the following command in the Azure CLI to view Application Live View:
125
+
Use the following command to view Application Live View:
126
126
127
127
```azurecli
128
128
az spring application-live-view show \
@@ -200,7 +200,7 @@ Use the following steps to deploy an app and monitor it in Application Live View
200
200
201
201
1. After the app is successfully deployed, you can monitor it using the Application Live View dashboard on Dev Tools Portal. For more information, see [Monitor apps by Application Live View](./monitor-apps-by-application-live-view.md).
202
202
203
-
If you've already enabled Dev Tools Portal and exposed a public endpoint, use the following command to get the Dev Tools Portal dashboard URL. Add the suffix `/app-live-view` to compose the endpoint to access Application Live View.
203
+
If you already enabled Dev Tools Portal and exposed a public endpoint, use the following command to get the Dev Tools Portal dashboard URL. Add the suffix `/app-live-view` to compose the endpoint to access Application Live View.
204
204
205
205
```azurecli
206
206
az spring dev-tool show --service <Azure-Spring-Apps-service-instance-name> \
@@ -209,31 +209,29 @@ Use the following steps to deploy an app and monitor it in Application Live View
209
209
--output tsv
210
210
```
211
211
212
-
You can also access the Application Live View using Visual Studio Code (VS Code). For more information, see the [Use Application Live View in VS Code](#use-application-live-view-in-vs-code) section.
212
+
You can also access the Application Live View using Visual Studio Code (VS Code). For more information, see the [Use Application Live View in VS Code](#use-application-live-view-in-vs-code) section of this article.
213
213
214
214
## Manage Application Live View in existing Enterprise plan instances
215
215
216
216
You can enable Application Live View in an existing Azure Spring Apps Enterprise plan instance using the Azure portal or Azure CLI.
217
217
218
-
If you have already enabled Dev Tools Portal and exposed a public endpoint, use <kbd>Ctrl</kbd>+<kbd>F5</kbd> to deactivate the browser cache after you enable Application Live View.
218
+
If you enabled Dev Tools Portal and exposed a public endpoint, use <kbd>Ctrl</kbd>+<kbd>F5</kbd> to deactivate the browser cache after you enable Application Live View.
219
219
220
220
### [Azure portal](#tab/Portal)
221
221
222
222
Use the following steps to manage Application Live View using the Azure portal:
223
223
224
-
1. Navigate to your service resource, and then select **Developer Tools**.
224
+
1. Navigate to your Azure Spring Apps service instance, and then select **Developer Tools**.
225
225
1. Select **Manage tools**.
226
226
227
227
:::image type="content" source="media/how-to-use-application-live-view/manage.png" alt-text="Screenshot of the Azure portal that shows the Developer Tools page." lightbox="media/how-to-use-application-live-view/manage.png":::
228
228
229
229
1. Select the **Enable App Live View** checkbox, and then select **Save**.
230
230
231
-
:::image type="content" source="media/how-to-use-application-live-view/check-enable.png" alt-text="Screenshot of the Developer Tools section showing the Enable App Live View checkbox." lightbox="media/how-to-use-application-live-view/check-enable.png":::
231
+
:::image type="content" source="media/how-to-use-application-live-view/check-enable.png" alt-text="Screenshot of the Azure portal that shows the Developer Tools section with the Enable App Live View checkbox." lightbox="media/how-to-use-application-live-view/check-enable.png":::
232
232
233
233
1. You can then view the state of Application Live View on the **Developer Tools**.
234
234
235
-
:::image type="content" source="media/how-to-use-application-live-view/check-enable.png" alt-text="Screenshot of the Developer Tools section showing the Enable App Live View checkbox." lightbox="media/how-to-use-application-live-view/check-enable.png":::
236
-
237
235
### [Azure CLI](#tab/Azure-CLI)
238
236
239
237
Use the following command to enable Application Live View using the Azure CLI:
@@ -255,6 +253,41 @@ az spring dev-tool create \
255
253
256
254
---
257
255
256
+
## Configure customized Spring Boot actuator
257
+
258
+
Application Live View can automatically connect and monitor Spring boot apps with default actuator settings. The default HTTP port of the actuator endpoints are same as the HTTP port of the application and all actuator endpoints are accessible by the default context path of the application, which has the `/actuator` suffix.
259
+
260
+
If the port (`management.server.port=`) or the context path (`management.endpoints.web.base-path=/`) are customized for an app, Application Live View stops connecting and monitoring the app and reports 404 for the app. To enable Application Live View to continue monitoring such apps, use the following steps to configure the app deployment to customize the actuator endpoints.
261
+
262
+
### [Azure portal](#tab/Portal)
263
+
264
+
Use the following steps to configure the deployment using the Azure portal:
265
+
266
+
1. Navigate to your Azure Spring Apps service instance, then go to the **Apps** page and select an application.
267
+
1. Select **Configuration** in the navigation pane.
268
+
1. On the **General settings** tab, update the **Spring Boot actuator port** and **Spring Boot actuator path** values, then select **Save**.
269
+
270
+
:::image type="content" source="media/how-to-use-application-live-view/application-configuration-save.png" alt-text="Screenshot of the Azure portal that shows the Configuration page with Save option highlighted." lightbox="media/how-to-use-application-live-view/application-configuration-save.png":::
271
+
272
+
### [Azure CLI](#tab/Azure-CLI)
273
+
274
+
Use the following command to deploy your application with the custom actuator settings in the Azure CLI:
> You can set this configuration on an app or a deployment. When you configure an app, it actually takes effect on the current active deployment, but doesn't automatically affect new deployments.
290
+
258
291
## Use Application Live View in VS Code
259
292
260
293
You can access Application Live View directly in VS Code to monitor your apps in the Azure Spring Apps Enterprise plan.
@@ -272,7 +305,7 @@ Use the following steps to view the Application Live View dashboard for a servic
272
305
1. Expand the service instance that you want to monitor and right-click to select the service instance.
273
306
1. Select **Open Application Live View** from the menu to open the Application Live View dashboard in your default browser.
274
307
275
-
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-open-service.png" alt-text="Screenshot of the VS Code extension showing the Open Application Live View option for a service instance." lightbox="media/how-to-use-application-live-view/visual-studio-code-open-service.png":::
308
+
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-open-service.png" alt-text="Screenshot of the VS Code extension that shows the Open Application Live View option for a service instance." lightbox="media/how-to-use-application-live-view/visual-studio-code-open-service.png":::
276
309
277
310
### View Application Live View page for an app
278
311
@@ -282,15 +315,15 @@ Use the following steps to view the Application Live View page for an app:
282
315
1. Expand the service instance and the app that you want to monitor. Right-click the app.
283
316
1. Select **Open Application Live View** from the menu to open the Application Live View page for the app in your default browser.
284
317
285
-
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-open-app.png" alt-text="Screenshot of the VS Code extension showing the Open Application Live View option for an app." lightbox="media/how-to-use-application-live-view/visual-studio-code-open-app.png":::
318
+
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-open-app.png" alt-text="Screenshot of the VS Code extension that shows the Open Application Live View option for an app." lightbox="media/how-to-use-application-live-view/visual-studio-code-open-app.png":::
286
319
287
320
### Troubleshoot Application Live View issues
288
321
289
322
If you try to open Application Live View for a service instance or an app that hasn't enabled Application Live View or exposed a public endpoint, you see an error message.
290
323
291
-
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-not-enabled.png" alt-text="Screenshot of the error message showing Application Live View not enabled and public endpoint not accessible." lightbox="media/how-to-use-application-live-view/visual-studio-code-not-enabled.png":::
324
+
:::image type="content" source="media/how-to-use-application-live-view/visual-studio-code-not-enabled.png" alt-text="Screenshot of the error message that shows Application Live View not enabled and public endpoint not accessible." lightbox="media/how-to-use-application-live-view/visual-studio-code-not-enabled.png":::
292
325
293
-
To enable Application Live View and expose public endpoint, use either the Azure portal or the Azure CLI. For more information, see the [Manage Application Live View in existing Enterprise plan instances](#manage-application-live-view-in-existing-enterprise-plan-instances) section.
326
+
To enable Application Live View and expose public endpoint, use either the Azure portal or the Azure CLI. For more information, see the [Manage Application Live View in existing Enterprise plan instances](#manage-application-live-view-in-existing-enterprise-plan-instances) section of this article.
0 commit comments