jbonofre opened a new issue, #356:
URL: https://github.com/apache/karaf-decanter/issues/356

   When I'm trying to collect Camel metrics from multiple routes, I'm adding 
something like this:
   
   ```
   object.name.routes=org.apache.camel:context=camelContext,type=routes,name=*
   ```
   
   to `org.apache.karaf.decanter.collector.jmx-local.cfg`.
   
   As a result I expect to see at least one metric for every route in 
Prometeus. But only one metric is added, because all MBeans for routes have the 
same property name, like Counter, so I have exception in PropemeteusServlet on 
code line:
   
   ```
   gauge = Gauge.build().name(convertedProperty).help(property + "." + 
entry.getKey()).register();
   ```
   
   Error message tells that gauge with this name is already registered.


-- 
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: issues-unsubscr...@karaf.apache.org.apache.org

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

Reply via email to