Gau*_*ier 7 java spring-boot spring-boot-actuator micrometer
我在Spring Boot 2版本中使用了新的MicroMeter指标.2.0.0-RELEASE
通过/actuator/metrics/{metric.name}端点发布指标时,我得到以下内容:
对于DistributionSummary:
"name": "sources.ingestion.rate",
"measurements": [
{
"statistic": "COUNT",
"value": 5
},
{
"statistic": "TOTAL",
"value": 72169.44162067816
},
{
"statistic": "MAX",
"value": 17870.68010661754
}
],
"availableTags": []
}
Run Code Online (Sandbox Code Playgroud)
对于Timer:
{
"name": "sources.ingestion",
"measurements": [
{
"statistic": "COUNT",
"value": 5
},
{
"statistic": "TOTAL_TIME",
"value": 65.700878648
},
{
"statistic": "MAX",
"value": 22.661545322
}
],
"availableTags": []
}
Run Code Online (Sandbox Code Playgroud)
是否可以丰富测量值以增加平均值,最小值或百分位数等度量?
对于我尝试使用的百分位数.publishPercentiles(0.5, 0.95),但这并未反映在执行器端点上.
经过 Github 上的讨论,目前 Micrometer 中还没有实现这一点。直接在 Github Issues 上获取更多详细信息:
| 归档时间: |
|
| 查看次数: |
920 次 |
| 最近记录: |