[ 
https://issues.apache.org/jira/browse/KARAF-7704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré resolved KARAF-7704.
-----------------------------------------
    Resolution: Duplicate

Moved to GitHub: https://github.com/apache/karaf-decanter/issues/356

> Duplicate metric names when using JMX collector and camel routes
> ----------------------------------------------------------------
>
>                 Key: KARAF-7704
>                 URL: https://issues.apache.org/jira/browse/KARAF-7704
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>    Affects Versions: decanter-2.9.0, decanter-2.10.0
>            Reporter: Serge Shikov
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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 message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to