SpringBoot Actuator提供了不少監控和管理你的spring boot應用的HTTP或者JMX端點,而且你能夠有選擇地開啓和關閉部分功能。html
當你的spring boot應用中引入依賴以後,將自動的擁有審計、健康檢查、Metrics監控功能。react
Spring Boot Admin用於監控基於Spring Boot的應用,它是在Spring Boot Actuator的基礎上提供簡潔的可視化 WEB UI。git
SpringBoot Actuator: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-readygithub
SpringBoot Admin: http://codecentric.github.io/spring-boot-admin/2.0.0/web
相關文檔:spring
http://blog.battcn.com/2018/05/24/springboot/v2-actuator-introduce/springboot
https://blog.csdn.net/qq_26000415/article/details/79065075session
內置的endpoints:app
ID
|
Description
|
Enabled by default
|
---|---|---|
ID
|
Description
|
Enabled by default
|
|
Exposes audit events information for the current application. |
Yes |
|
Displays a complete list of all the Spring beans in your application. |
Yes |
|
Exposes available caches. |
Yes |
|
Shows the conditions that were evaluated on configuration and auto-configuration classes and the reasons why they did or did not match. |
Yes |
|
Displays a collated list of all |
Yes |
|
Exposes properties from Spring’s |
Yes |
|
Shows any Flyway database migrations that have been applied. |
Yes |
|
Shows application health information. |
Yes |
|
Displays HTTP trace information (by default, the last 100 HTTP request-response exchanges). |
Yes |
|
Displays arbitrary application info. |
Yes |
|
Shows the Spring Integration graph. |
Yes |
|
Shows and modifies the configuration of loggers in the application. |
Yes |
|
Shows any Liquibase database migrations that have been applied. |
Yes |
|
Shows ‘metrics’ information for the current application. |
Yes |
|
Displays a collated list of all |
Yes |
|
Displays the scheduled tasks in your application. |
Yes |
|
Allows retrieval and deletion of user sessions from a Spring Session-backed session store. Not available when using Spring Session’s support for reactive web applications. |
Yes |
|
Lets the application be gracefully shutdown. |
No |
|
Performs a thread dump. |
Yes |
若是是Web應用,還包括:
ID
|
Description
|
Enabled by default
|
---|---|---|
|
Returns a GZip compressed |
Yes |
|
Exposes JMX beans over HTTP (when Jolokia is on the classpath, not available for WebFlux). |
Yes |
|
Returns the contents of the logfile (if |
Yes |
|
Exposes metrics in a format that can be scraped by a Prometheus server. |
Yes |