官术网_书友最值得收藏!

Analyzing the Actuator's endpoints

Spring Boot's Actuator offers you several web endpoints; these let you monitor your running Spring application and you can view the internals of your application in production. It provides you a number of predefined endpoints for your Spring application, but you can also add your own custom endpoint for monitoring your application in production.

For example, the health endpoint provides basic application health information and you can also find out how beans are wired together in the Spring application context, determine what environment properties are available to your application, get a snapshot of runtime metrics, and more.

You can easily make use of your application and optimize it by invoking HTTP endpoints if your application is configured with Spring Boot Actuator. There is a wide range of HTTP endpoints that Spring Boot Actuator can support. Some of these are:

  • Bean details
  • Logger details
  • Configuration details
  • Health details
  • Version details

With these built-in endpoints in Spring Boot Actuator, it also allows you to add your own endpoint or customize an existing one. Spring Boot sets the sensitive default to some HTTP endpoints, which cannot be exposed publicly. These endpoints require a password or a username.

The Spring Boot's Actuator exposes a number of endpoints in multiple ways, but these depend on the technology you are using. Once Spring Boot Actuator is configured into your application, it provides you several Actuator REST endpoints. If you are choosing HTTP web endpoints, then you can see the following endpoints:

The preceding table has several web endpoints. You can organize these endpoints into the following three categories:

  • Configuration endpoints
  • Metrics endpoints
  • Application information endpoints

Let's take a look at how to expose these endpoints that provide insight into the configuration of your application. Since endpoints may contain sensitive information, careful consideration should be given about when to expose them. Out of the box, Spring Boot will expose all enabled endpoints over JMX, but only the health and info endpoints over HTTP.

主站蜘蛛池模板: 乌鲁木齐县| 会同县| 车险| 姚安县| 榆社县| 蚌埠市| 台山市| 建水县| 高碑店市| 牡丹江市| 双牌县| 广水市| 福泉市| 岢岚县| 平原县| 红安县| 哈尔滨市| 海城市| 盐津县| 湄潭县| 镇远县| 瓮安县| 临沂市| 巨鹿县| 白水县| 永福县| 额济纳旗| 江达县| 招远市| 宣化县| 离岛区| 诸城市| 阿拉尔市| 密山市| 兴业县| 运城市| 金山区| 驻马店市| 滦南县| 卫辉市| 曲靖市|