Spring Actuator 使用

一下內容參考這個:

https://juejin.im/post/5bf2d9536fb9a049e5533b9a

當前應用的默認端口號是8080
項目配置信息:
#開啓全部
management.endpoints.web.exposure.include=*
#開啓某個
management.endpoints.web.exposure.include=metrics
#關閉某個
management.endpoints.web.exposure.exclude=metrics


http://localhost:8080/actuator


狀態是否正常
http://localhost:8080/actuator/health

獲取應用上下文中創建的所有Bean
http://localhost:8080/actuator/beans

獲取應用中配置的屬性信息報告
http://localhost:8080/actuator/configprops

獲取應用所有可用的環境屬性報告
http://localhost:8080/actuator/env

獲取應用所有Spring Web的控制器映射關係報告
http://localhost:8080/actuator/mappings

http://localhost:8080/actuator/info
獲取應用自定義的信息

http://localhost:8080/actuator/metrics
返回應用的各類重要度量指標信息

http://localhost:8080/actuator/httptrace
返回基本的HTTP跟蹤信息 保存最近100條在內存中

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章