0

我想通过 JMX 将 apache ignite-2.8.1 节点/集群/缓存指标导出到 sql 和 graffana。这样我就可以监控点火性能和警报。

我尝试使用 jmx_exporter https://github.com/prometheus/jmx_exporter。但低于错误。

Jul 16, 2020 5:00:24 PM io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector collect
SEVERE: JMX scrape failed: java.lang.ClassCastException: java.lang.Long cannot be cast to javax.management.Attribute
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxScraper.scrapeBean(JmxScraper.java:160)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxScraper.doScrape(JmxScraper.java:117)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector.collect(JmxCollector.java:473)
        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.findNextElement(CollectorRegistry.java:190)
        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:223)
        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:144)
        at io.prometheus.jmx.shaded.io.prometheus.client.exporter.common.TextFormat.write004(TextFormat.java:22)
        at 

    io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer$HTTPMetricHandler.handle(HTTPServer.java:68)
            at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
            at sun.net.httpserver.AuthFilter.doFilter(Unknown Source)
            at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
            at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(Unknown Source)
            at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
            at sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)

并在 apache-ignite-exproter https://github.com/leonardonsantos/apache-ignite-exporter下面使用

让我知道我在哪里错过了流程。

4

1 回答 1

0

使用官方 Apache Ignite JMX 导出器来捕获 Ignite 2.8 中引入的新监控子系统的指标:https ://apacheignite.readme.io/docs/new-metrics

此外,将 GridGain Control Center 视为集群的首选监控和管理工具。它支持所有基本指标、警报、跟踪等等:https ://www.gridgain.com/docs/control-center/latest/overview

于 2020-07-18T03:10:09.323 回答