将"mean","min"或"百分位数"添加到Spring Boot 2指标中?

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),但这并未反映在执行器端点上.