@Endpoint(value="metrics", defaultSensitive=false) @RequiresMetrics public class MetricsEndpoint extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MetricsEndpoint.AvailableTag
A set of tags for further dimensional drilldown and their potential values. 
 | 
static class  | 
MetricsEndpoint.MetricDetails
Response payload for a metric name selector. 
 | 
static class  | 
MetricsEndpoint.MetricNames
Response payload for a metric name listing. 
 | 
static class  | 
MetricsEndpoint.Sample
A measurement sample combining a  
statistic and a value. | 
| Constructor and Description | 
|---|
MetricsEndpoint(Collection<io.micrometer.core.instrument.MeterRegistry> meterRegistries,
               ApplicationContext applicationContext)
Constructor for metrics endpoint. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MetricsEndpoint.MetricDetails | 
getMetricDetails(String name,
                List<String> tag)
Method to read individual metric data. 
 | 
MetricsEndpoint.MetricNames | 
listNames()
Read operation to list metric names. 
 | 
public MetricsEndpoint(Collection<io.micrometer.core.instrument.MeterRegistry> meterRegistries, ApplicationContext applicationContext)
meterRegistries - Meter RegistriesapplicationContext - Application Context for looking up beans@Read public MetricsEndpoint.MetricNames listNames()
@Read public MetricsEndpoint.MetricDetails getMetricDetails(@Selector String name, @Nullable List<String> tag)
After calling the /metrics endpoint, you can pass the name in like /metrics/foo.bar and the details for the metrics and tags will be returned.
Will return a 404 if the metric is not found.
name - the name of the metric to get the details fortag - The tags