You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2023/07/10 11:53:00 UTC
[jira] [Assigned] (KARAF-7704) Duplicate metric names when using JMX collector and camel routes
[ https://issues.apache.org/jira/browse/KARAF-7704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-7704:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> 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)