private MetricRegistry metricRegistry;
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
if (metricRegistry == null) {
Registry camelRegistry = getCamelContext().getRegistry();
metricRegistry = getOrCreateMetricRegistry(camelRegistry, METRIC_REGISTRY_NAME);
}
String metricsName = getMetricsName(remaining);
MetricsType metricsType = getMetricsType(remaining);
LOG.info("Metrics type: {}; name: {}", metricsType, metricsName);