Apps Manager for VMware Tanzu Application Service for VMs (TAS for VMs) views and manages app information from Spring Boot Actuator.

Prerequisites

The Apps Manager integration with Spring Boot Actuator requires:

View build and Git information for your app

To view the data that your app sends to its /info Actuator endpoint, click the Settings tab.

App info page for hello-spring-cloud app

In the upper right of the app page, Apps Manager displays the SHA of your app code repository from the latest build.

App info page for hello-spring-cloud app showing app code repository SHA.

View app health

To view the health check data that your app sends to its /health Actuator endpoints:

  1. Select the Overview tab.

  2. Click an instance under the Instances section. The health check details are displayed.

    Instances Health Check page

View thread dump

To trigger and view a thread dump from your app to its /dump Actuator endpoint:

  1. Select the Threads tab.

  2. Click Refresh.

    App status display

You can click each thread to expand and view its details. You can also change which threads appear on the page using the Instance and Show drop-down menus.

View request traces

To retrieve and view tracing information from the /trace Actuator endpoint of your app:

  1. Select the Trace tab.

  2. Click Refresh.

    EntryNotFound (FileSystemError)

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 change which requests appear on the page using the Instance drop-down menu.

By default, the Trace tab does not show requests and responses from Apps Manager polling app instances for data. To include these requests, deselect the Hide Apps Manager Requests check box next to the Instance drop-down menu.

Download heap dump

To trigger and view a heap dump from your app to its /heapdump endpoint.

  1. Select the settings drop-down menu for an instance of your app.

  2. Click Heap Dump. This downloads a .zip file.

    Instances page showing App Health, CPU, Memory, Disk, and Uptime.

View mappings

To view a collated list of the endpoints an app serves:

  1. Select the Settings tab.

  2. Click View Mappings.

    App Settings page

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:

  1. Select the Logs tab.

  2. Click Configure Logging Levels.

    Logs tab: Configure Logging Levels button

Apps Manager displays the default log level for each logger in gray.

Configure Logging levels: shows level selector for each logger.

You can edit the log level for a logger by clicking the level you want in the logger row, as shown in the following image. 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.

Configure Logging levels: shows level selector for each logger.

All of the loggers with user-configured logging levels float to the top of the list.

Configure Logging levels: shows level selector for each logger.

You can reset log levels by clicking the white dot displayed on the current log level.

Configure Logging levels: shows level selector for each logger.

You can also filter which loggers you see using the Filter Loggers text box.

Configure which loggers are displayed.

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

Symptom

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

Explanation

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.

Solution

If you are not using the Spring Boot Actuator integrations for Apps Manager, you can ignore this failed request message.

check-circle-line exclamation-circle-line close-line
Scroll to top icon