JiriOndrusek commented on code in PR #11715: URL: https://github.com/apache/camel/pull/11715#discussion_r1358017118
########## components/camel-micrometer/src/main/docs/micrometer-component.adoc: ########## @@ -567,17 +575,33 @@ and add a `JmxMeterRegistry` instance: HierarchicalNameMapper.DEFAULT)); return meterRegistry; } -} ---- -The `HierarchicalNameMapper` strategy determines how meter name and tags are assembled into -an MBean name. +CDI:: ++ +[source,java] +---- + @Produces + @Named(MicrometerConstants.METRICS_REGISTRY_NAME)) + public MeterRegistry getMeterRegistry() { + CompositeMeterRegistry meterRegistry = new CompositeMeterRegistry(); + meterRegistry.add(...); + meterRegistry.add(new JmxMeterRegistry( + CamelJmxConfig.DEFAULT, + Clock.SYSTEM, + HierarchicalNameMapper.DEFAULT)); + return meterRegistry; + } +---- +==== + +The `HierarchicalNameMapper` strategy determines how meter name and tags are assembled into an MBean name. +ifeval::[{show-csb-content} == true] Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org