@Endpoint(value="metrics",
          defaultSensitive=false)
 @RequiresMetrics
public class MetricsEndpoint
extends java.lang.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(java.util.Collection<io.micrometer.core.instrument.MeterRegistry> meterRegistries,
               io.micronaut.context.ApplicationContext applicationContext)
Constructor for metrics endpoint. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MetricsEndpoint.MetricDetails | 
getMetricDetails(java.lang.String name,
                java.util.List<java.lang.String> tag)
Method to read individual metric data. 
 | 
MetricsEndpoint.MetricNames | 
listNames()
Read operation to list metric names. 
 | 
public MetricsEndpoint(java.util.Collection<io.micrometer.core.instrument.MeterRegistry> meterRegistries,
                       io.micronaut.context.ApplicationContext applicationContext)
meterRegistries - Meter RegistriesapplicationContext - Application Context for looking up beans@Read public MetricsEndpoint.MetricNames listNames()
@Read public MetricsEndpoint.MetricDetails getMetricDetails(@Selector java.lang.String name, @Nullable java.util.List<java.lang.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