类 MetricsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.metrics.MetricsEndpoint
@Endpoint(id="metrics") public class MetricsEndpoint extends Object
AnEndpoint
for exposing the metrics held by aMeterRegistry
.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
MetricsEndpoint.AvailableTag
A set of tags for further dimensional drilldown and their potential values.static class
MetricsEndpoint.ListNamesResponse
Response payload for a metric name listing.static class
MetricsEndpoint.MetricResponse
Response payload for a metric name selector.static class
MetricsEndpoint.Sample
A measurement sample combining astatistic
and a value.
构造器概要
构造器 构造器 说明 MetricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
构造器详细资料
MetricsEndpoint
public MetricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
方法详细资料
listNames
@ReadOperation public MetricsEndpoint.ListNamesResponse listNames()
metric
@ReadOperation public MetricsEndpoint.MetricResponse metric(@Selector String requiredMetricName, @Nullable List<String> tag)