0% found this document useful (0 votes)
9 views9 pages

4.1.1 Sprint Boot Actuator

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views9 pages

4.1.1 Sprint Boot Actuator

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Spring Boot Actuator

By:MadSe
Spring Boot Actuator - Overview

By:MadSe
• Spring Boot Actuator is a set of built-in tools that lets us …

o Monitor and mange our application


o Check the application health.
o Access application metrics

• Exposes endpoints to monitor and manage our


apps.
• Free endpoints that we can get by simply adding
a dependency
• REST endpoints are automatically added to our
application

By:MadSe
Adding Dependency

By:MadSe
• Adding the dependency to our POM file

By:MadSe
Actuator Endpoints

By:MadSe
• Endpoints are prefixed with “/actuator”

/actuator/health Provides application health information.


/actuator/metrics Exposes various metrics about the application
(e.g., memory usage, CPU usage).
/actuator/info Displays arbitrary application info
/actuator/env Exposes environment properties.
/actuator/loggers Manages and monitors logging levels.
/actuator/beans Displays all Spring beans in the application
context.

By:MadSe
• By default, only “/health” is exposed

• The “/info” endpoint can provide information about your


application.

• To expose info, we need to add the following in the


“application.properties” file

By:MadSe
• By default, accessing “localhost:8080/actuator/info” can only
return a blank Json object.

• We need to customize the “info” endpoint to return information.

• For “info” to return useful info, we update “application.properties”


with our app info, as given below

By:MadSe

You might also like