Using Spring Boot Actuators with Apps Manager
Page last updated:
This document describes how to view and manage app information from Spring Boot Actuator in Apps Manager.
The Apps Manager integration with Spring Boot Actuator requires:
A TAS for VMs user with the
SpaceDeveloperrole. For more information, see App Space Roles.
Spring Boot v1.5 or later.
Completing the procedures in Configure Spring Boot Actuator Endpoints for Apps Manager.
After your configure your app, Apps Manager displays the Spring Boot logo next to the name of your app on the app page:
View Build and Git Information for Your App
To view the data that your app sends to its
/info Actuator endpoint, select the Settings tab:
In the upper right of the app page, Apps Manager also displays the SHA of your app code repository from the latest build:
View App Health
To view the health-check data that your app sends to its
/health Actuator endpoints:
Select the Overview tab.
Click an instance under the Instances section:
View Thread Dump
To trigger and view a thread dump from your app to its
/dump Actuator endpoint:
Select the Threads tab.
You can click each thread to expand and view its details. You can also modify which threads appear on the page using the Instance and Show dropdowns.
View Request Traces
To retrieve and view tracing information from the
/trace Actuator endpoint of your app:
Select the Trace tab.
This page displays the last 100 requests from your app. You can click each individual request to expand and view its trace details. You can modify which requests appear on the page using the Instance dropdown.
By default, the Trace tab does not show requests and responses from Apps Manager polling app instances for data. To include these requests, clear the Hide Apps Manager Requests checkbox next to the Instance dropdown.
Download Heap Dump
To trigger and view a heap dump from your app to its
Select the settings dropdown for an instance of your app.
Click Heap Dump. This downloads a
To view a collated list of the endpoints an app serves:
Select the Settings tab.
Click View Mappings.
Manage Log Levels for Apps Mapped to External Routes
Spring Boot apps include loggers for many provided and user components of the app. You can set the log level for each logger in Apps Manager.
To view the Configure Logging Levels screen:
Select the Logs tab.
Click Configure Logging Levels.
Apps Manager displays the default log level for each logger in gray.
You can modify the log level for a logger by clicking the desired level in the logger row, as shown in the image below. Whenever you set a log level, the following happens:
- The log level displays in blue to indicate that it is user-configured.
- Each child namespace of the logger inherits the log level.
Note: You can manually set any of the child loggers to override this inheritance.
All of the loggers with user-configured logging levels float to the top of the list.
You can reset log levels by clicking the white dot displayed on the current log level.
You can also filter which loggers you see using the Filter Loggers textbox.
Troubleshoot Spring Boot Actuator Integration
This section describes how to troubleshoot common issues with the integration of Apps Manager and Spring Boot Actuator.
/cloudfoundryapplication Failed Request
You see the following failed request message in your app logs:
Could not find resource for relative : /cloudfoundryapplication of full path: http://example.com/cloudfoundryapplication
Apps Manager uses the
/cloudfoundryapplication endpoint as the root for Spring Boot Actuator integrations. It calls this endpoint for an app when you view the app in the Apps Manager UI, regardless of whether you have configured Spring Boot Actuator endpoints for Apps Manager.
If you are not using the Spring Boot Actuator integrations for Apps Manager, you can ignore this failed request message.