Re: camel-metrics Component

2015-03-01 Thread vivekt
Hello Claus, Thank you again for your reply. The code in java works and I can get the counter metrics values in MetricRegistry. I am now trying to figure out how can I create a bean in blueprint of SimpleRegistry which extends type HashMap. So far, I have this. Also, I am not sure how ca

Re: camel-metrics Component

2015-02-27 Thread vivekt
I am using metrics component of type counter in camel route. I do see the counters and their values reported in the logs every 1 minute, but I want to access these values via jmx so that I can push them to our dashboard. Here is the chunk of log file... 2015-02-26 17:23:49,948 | INFO | eporter-t

Re: camel-metrics Component

2015-02-26 Thread vivekt
Hello Claus, Thank you for your quick reply. I do see that the metrics route policy is using a metrics timer to capture the data. But it does not have the counters values which I am using in the blueprint context. Do I have to write my own MetricsRoutePolicy (or extend it) so that all the counte

RE: camel-metrics Component

2015-02-25 Thread vivekt
Hello Claus, I tested Jim's orginal Java class with 2.14.1, but still could not get the metrics from MetricsRegistryService. When I invoke dumpStatisticsAsJson() , all the metrics are empty. Here is the output "version" : "3.0.0", "gauges" : { }, "counters" : { }, "histograms" : { }, "met