mmacphail opened a new issue, #4313:
URL: https://github.com/apache/camel-quarkus/issues/4313

   In my camel-quarkus-kafka project, producer Kafka metrics are not showing up 
in the [Micrometer prometheus endpoint](http://localhost:8080/q/metrics).
   
   The [example project](https://github.com/mmacphail/example-camel-kafka) is 
available on github. If the project is ran, no Kafka metrics will appear in 
[Micrometer prometheus endpoint](http://localhost:8080/q/metrics). Other 
metrics such as camel metrics appear.
   
   My route:
   ```java
   public class ExampleRoute extends RouteBuilder {
   
     @Override
     public void configure() throws Exception {
       from(timer("foo").period(1000))
             .to(kafka("test"));
     }
   }
   ```
   
   Configuration:
   ```text
   quarkus.camel.metrics.enable-message-history=true
   quarkus.kafka.devservices.enabled=true
   quarkus.micrometer.binder.kafka.enabled=true
   ```
   I would expect the third property to do the trick according to the [Quarkus 
Micrometer 
documentation](https://quarkus.io/guides/micrometer#quarkus-micrometer_quarkus.micrometer.binder.kafka.enabled).
   
   Dependencies:
   ```xml
     <dependencies>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-resteasy-reactive-jackson</artifactId>
       </dependency>
       <dependency>
         <groupId>org.apache.camel.quarkus</groupId>
         <artifactId>camel-quarkus-core</artifactId>
       </dependency>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-micrometer-registry-prometheus</artifactId>
       </dependency>
       <dependency>
         <groupId>org.apache.camel.quarkus</groupId>
         <artifactId>camel-quarkus-kafka</artifactId>
       </dependency>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-resteasy-reactive</artifactId>
       </dependency>
       <dependency>
         <groupId>org.apache.camel.quarkus</groupId>
         <artifactId>camel-quarkus-micrometer</artifactId>
       </dependency>
       <dependency>
         <groupId>org.apache.camel.quarkus</groupId>
         <artifactId>camel-quarkus-timer</artifactId>
       </dependency>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-micrometer</artifactId>
       </dependency>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-arc</artifactId>
       </dependency>
       <dependency>
         <groupId>io.quarkus</groupId>
         <artifactId>quarkus-junit5</artifactId>
         <scope>test</scope>
       </dependency>
       <dependency>
         <groupId>io.rest-assured</groupId>
         <artifactId>rest-assured</artifactId>
         <scope>test</scope>
       </dependency>
     </dependencies>
   ```


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to