Hi,

I followed camel-example-micrometer (v2.22.2) and see only jvm metrics
under localhost:8088/metrics
and no metrics from the route direct:bar below. How to make these
available in /metrics output as well?


        from("netty4-http:http://0.0.0.0:8088/metrics";)
                .routeId("netty4-http:scrape")
                .log(LoggingLevel.INFO, "Scraping metrics")
                .transform().method(prometheusMeterRegistry, "scrape");

        from("timer:foo?period=1s&fixedRate=true")
                .routeId(TIMER_ROUTE_ID)
                .setHeader("random").exchange(exchange -> random.nextInt(100))
                .log(LoggingLevel.INFO, "Delay is ${header.random}")
                .to("direct:bar");

        from("direct:bar")
                .routeId("direct:bar")
                 .to("micrometer:counter:simple.count?tags=bar=valuebar")
                .to("micrometer:summary:summary?value=${header.random}")
                .to("micrometer:timer:timer?action=start")
                .delay().exchange(exchange -> random.nextInt(100))
                .to("micrometer:timer:timer?action=stop");

Dan

Reply via email to