50.6 Adding your own public metrics
To add additional metrics that are computed every time the metrics endpoint is invoked, simply register additional PublicMetrics
implementation bean(s). By default, all such beans are gathered by the endpoint. You can easily change that by defining your own MetricsEndpoint
.