You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/30 13:16:44 UTC

[GitHub] [camel-k] SubhasmitaSw edited a comment on pull request #3152: Example to show usage of prometheus trait

SubhasmitaSw edited a comment on pull request #3152:
URL: https://github.com/apache/camel-k/pull/3152#issuecomment-1083128202


   I hope this looks fine now
   
   ```
   import org.apache.camel.builder.RouteBuilder;
   
   public class ServiceMonitor extends RouteBuilder {
       @Override
       public void configure() throws Exception {
           from("timer:tick")
                   .setHeader("example")
                   .constant("Hello Camel K!")
                   .to("log:info");
       }
   }
   ```
   
   and to test it if its working i tried to run using 
   `kamel run -t Hello.java prometheus.enabled=true`
   
   However, I'm receiving an issue that I don't seem to understand right now.
   
   `Error: cannot read sources: cannot read sources: missing file or unsupported scheme in prometheus.enabled=true`


-- 
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-unsubscribe@camel.apache.org

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