Skip to content

Latest commit

 

History

History
82 lines (43 loc) · 2.84 KB

File metadata and controls

82 lines (43 loc) · 2.84 KB

Health (health)

The health endpoint provides detailed information about the health of the application.

Retrieving the Health of the Application

To retrieve the health of the application, make a GET request to /actuator/health, as shown in the following curl-based example:

The resulting response is similar to the following:

Response Structure

The response contains details of the health of the application. The following table describes the structure of the response:

Note
The response fields above are for the V3 API. If you need to return V2 JSON you should use an accept header or application/vnd.spring-boot.actuator.v2+json

Retrieving the Health of a Component

To retrieve the health of a particular component of the application’s health, make a GET request to /actuator/health/{component}, as shown in the following curl-based example:

The resulting response is similar to the following:

Response Structure

The response contains details of the health of a particular component of the application’s health. The following table describes the structure of the response:

Retrieving the Health of a Nested Component

If a particular component contains other nested components (as the broker indicator in the example above), the health of such a nested component can be retrieved by issuing a GET request to /actuator/health/{component}/{subcomponent}, as shown in the following curl-based example:

The resulting response is similar to the following:

Components of an application’s health may be nested arbitrarily deep depending on the application’s health indicators and how they have been grouped. The health endpoint supports any number of /{component} identifiers in the URL to allow the health of a component at any depth to be retrieved.

Response Structure

The response contains details of the health of an instance of a particular component of the application. The following table describes the structure of the response: