Hi

Its a big upgrade, also micrometer is upgraded. So it may have changed
what information it exports to JMX.
Check on their project.



On Wed, Apr 8, 2020 at 8:46 AM Mikael Andersson Wigander
<mikael.grevs...@gmail.com> wrote:
>
> Yes, it is added
>
> M
>
> > On 8 Apr 2020, at 08:45, Andrea Cosentino <anco...@gmail.com> wrote:
> >
> > Did you add the camel-management dependency? Otherwise Jmx won't be enabled
> >
> > Il giorno mer 8 apr 2020 alle ore 08:43 Mikael Andersson Wigander 
> > <mikael.grevs...@gmail.com <mailto:mikael.grevs...@gmail.com>> ha scritto:
> > Hi
> >
> > Previously I used to run my Camel routes under 2.25.0 and with Micrometer 
> > component for JMX in Spring Boot 2.1.9.
> >
> > This route gives me a “messasges” counter in JMX to study:
> >
> > .to("micrometer:counter:messages")
> >
> >
> >
> >
> >
> > But now that I upgraded to Camel 3.2.0 and Spring 2.2.6 it is not available 
> > in JMX anymore.
> >
> > Instead I get three other categories:
> >
> > * gauges
> > * meters
> > * timers
> >
> >
> >
> > Same dependencies apply and also my bean is the same
> >
> > @Bean(name = MicrometerConstants.METRICS_REGISTRY_NAME)
> > public MeterRegistry getMeterRegistry() {
> >     CompositeMeterRegistry meterRegistry = new CompositeMeterRegistry();
> >     meterRegistry.add(new JmxMeterRegistry(
> >         CamelJmxConfig.DEFAULT,
> >         Clock.SYSTEM,
> >         HierarchicalNameMapper.DEFAULT));
> >
> >     return meterRegistry;
> > }
> >
> >
> > Please advice
> >
> > Thx
> >
> > M
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to