You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "jbonofre (via GitHub)" <gi...@apache.org> on 2025/02/05 15:14:34 UTC
[I] Duplicate metric names when using JMX collector and camel routes [karaf-decanter]
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-unsubscribe@karaf.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Duplicate metric names when using JMX collector and camel routes [karaf-decanter]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre closed issue #356: Duplicate metric names when using JMX collector and camel routes
URL: https://github.com/apache/karaf-decanter/issues/356
--
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-unsubscribe@karaf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org