Camel Context Metrics

2016-08-15 Thread Rajith Muditha Attapattu
Hey All, I'm aware of the hawt.io plugin that connects to a Camel Context and pulls info via JMX. For performance reasons, we are looking at how an application (that contains one or more Camel Context) wants to push route metrics to an external source. We have several of those apps, which is why

Re: Camel Context Metrics

2016-08-15 Thread James Strachan
Prometheus is an awesome way to collect metrics from containers, JVMs, Camel contexts and other processes: https://prometheus.io/ We use it in fabric8 (http://fabric8.io/) to collect metrics from docker containers, kubernetes and any JVM which contains JMX or Camel. Adding Agent Bond to any JVM e

Re: Camel Context Metrics

2016-08-15 Thread Rajith Muditha Attapattu
Thank you James! On Mon, Aug 15, 2016 at 11:35 AM, James Strachan wrote: > Prometheus is an awesome way to collect metrics from containers, JVMs, > Camel contexts and other processes: > https://prometheus.io/ > > We use it in fabric8 (http://fabric8.io/) to collect metrics from docker > container

Re: Camel Context Metrics

2016-08-15 Thread Mark Nuttall
Another way - if you are using Spring, Spring Boot has exporters built in to export metrics. On Mon, Aug 15, 2016 at 12:02 PM, Rajith Muditha Attapattu < rajit...@gmail.com> wrote: > Thank you James! > > On Mon, Aug 15, 2016 at 11:35 AM, James Strachan > wrote: > > Prometheus is an awesome way t

Re: Camel Context Metrics

2016-08-15 Thread Rajith Muditha Attapattu
Thanks Mark. I'm using CDI, unfortunately this option is out. On Mon, Aug 15, 2016 at 12:12 PM, Mark Nuttall wrote: > Another way - if you are using Spring, Spring Boot has exporters built in > to export metrics. > > On Mon, Aug 15, 2016 at 12:02 PM, Rajith Muditha Attapattu < > rajit...@gmail.co

Retrieving exchange property with java DSL

2016-08-15 Thread Rajith Muditha Attapattu
In my route builder, when constructing an error path, I need to grab an error code (an Enum) and a String description so I could use the "throw Exception()" and create a typed Exception object using the error code and desc as constructor parameters. The error code and description are set earlier i

camel-jetty http proxy taking too much of time for large request streams (file upload)

2016-08-15 Thread mukesh_verma
I have created a camel-jetty http proxy bridge for my project's restful services for document download/upload. These services are invoked to get/upload documents of different types, most of the times the file size is more than 100MB. When I invoke the upload rest service(HTTP POST) directly(not ro

Rest DSL & CORS

2016-08-15 Thread dmitriyC300
Hi Guys, Is there a way to dynamically set/reset Access-Control-Allow-Origin response header based on incoming request's Origin header? It looks like static setting can be applied via rest configuration, but I couldn't figure out how to do it dynamically apart from managing response CORS headers d

Spring Boot - FatJarRouter or Non FatJar Router

2016-08-15 Thread fxthomas
hi, I am converting my existing spring XML based camel apllication to Spring boot. I saw the existing examples of camel spring boot. My issue is I want to load my existing beans & routes which are there in the camelcontext xml directly . So I am not sure how do i load my context.xml using