[jira] [Created] (IGNITE-14376) JmxMetricExporter fails to export discovery metrics

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-14376) JmxMetricExporter fails to export discovery metrics

Anton Vinogradov (Jira)
Mikhail Petrov created IGNITE-14376:
---------------------------------------

             Summary: JmxMetricExporter fails to export discovery metrics
                 Key: IGNITE-14376
                 URL: https://issues.apache.org/jira/browse/IGNITE-14376
             Project: Ignite
          Issue Type: Bug
            Reporter: Mikhail Petrov


Reproducer: 
{code:java}
/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

    JmxMetricExporterSpi jmxSpi = new JmxMetricExporterSpi();

    cfg.setMetricExporterSpi(jmxSpi);

    return cfg;
}

/** */
@Test
public void test() throws Exception {
    IgniteEx srv = startGrid();
    DynamicMBean mBean = metricRegistry(srv.name(), "io", "discovery");

    mBean.getMBeanInfo();
}

{code}
The main reason: JMX exporter assumes that each metric must starts with the name of the registry  it belongs to, but discovery metrics do not obey this naming convection -see TcpDiscoveryStatistics/ZookeeperDiscoveryStatistics



--
This message was sent by Atlassian Jira
(v8.3.4#803005)