我正在使用 Spring Boot Actuator 依赖项来了解应用程序。为此,我使用了 Spring Boot Admin。客户端-服务器的配置工作正常。我必须测量将要执行的端点的计数、总时间、最大值。
uri:/user/asset/getAllAssets
TOTAL_TIME: 831ms
MAX: 0ms
uri:/user/getEmployee/{employeeId}
TOTAL_TIME: 98ms
MAX: 0ms
为什么 MAX (time) 为 0 而 TOTAL_TIME: 为 Xms
当我执行概括形式时
localhost:8889/actuator/metrics/http.server.requests
我得到MAX 为 3.00..
我也看到了生产就绪的特性,但找不到任何关于 MAX 是如何计算的或者它代表什么的描述
注:随着request数量的增加,COUNT,TOTAL_TIME也在增加,但MAX有时会减少(详见Request 1,Request 2)
{
"name": "http.server.requests",
"description": null,
"baseUnit": "seconds",
"measurements": [
{
"statistic": "COUNT",
"value": 597
},
{
"statistic": "TOTAL_TIME",
"value": 144.9057076
},
{
"statistic": "MAX",
"value": 3.0002913
}
],
"availableTags": [
{
"tag": "exception",
"values": [
"None"
]
},
{
"tag": "method",
"values": [
"GET"
]
},
{
"tag": "uri",
"values": [
"/actuator/metrics/{requiredMetricName}",
"/**/favicon.ico",
"/actuator",
"/user/getEmployee/{employeeId}",
"/user/asset/getAllAssets",
"/actuator/health",
"/actuator/info",
"/actuator/env/{toMatch}",
"/actuator/metrics",
"/**"
]
},
{
"tag": "outcome",
"values": [
"CLIENT_ERROR",
"SUCCESS"
]
},
慕工程0101907
守着一只汪
相关分类