如何将apache-ignite指标导出到sql / jmx

时间:2020-07-17 14:32:44

标签: prometheus ignite jmx-exporter

我想通过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

让我知道我在哪里缺少流程。

1 个答案:

答案 0 :(得分: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