Class 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.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description 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.
Constructor Summary
Constructors Constructor Description MetricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricsEndpoint.ListNamesResponselistNames()MetricsEndpoint.MetricResponsemetric(String requiredMetricName, List<String> tag)
Constructor Detail
MetricsEndpoint
public MetricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
Method Detail
listNames
@ReadOperation public MetricsEndpoint.ListNamesResponse listNames()
metric
@ReadOperation public MetricsEndpoint.MetricResponse metric(@Selector String requiredMetricName, @Nullable List<String> tag)