类 MetricsEndpoint
- java.lang.Object
- org.springframework.boot.actuate.metrics.MetricsEndpoint
@Endpoint(id="metrics") public class MetricsEndpoint extends Object
AnEndpointfor exposing the metrics held by aMeterRegistry.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classMetricsEndpoint.AvailableTagA set of tags for further dimensional drilldown and their potential values.static classMetricsEndpoint.ListNamesResponseResponse payload for a metric name listing.static classMetricsEndpoint.MetricResponseResponse payload for a metric name selector.static classMetricsEndpoint.SampleA measurement sample combining astatisticand 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)