【问题标题】:How to export apache-ignite metrics to sql/jmx如何将 apache-ignite 指标导出到 sql/jmx
【发布时间】:2020-11-07 09:21:35
【问题描述】:

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

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

【问题讨论】:

    标签: prometheus ignite jmx-exporter


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-29
      • 2021-05-23
      • 2021-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-18
      • 1970-01-01
      相关资源
      最近更新 更多