Git Product home page Git Product logo

Comments (9)

brian-brazil avatar brian-brazil commented on May 23, 2024

Can you indicate exactly which version generated that error?

from jmx_exporter.

amradk avatar amradk commented on May 23, 2024

This was jmx_exporter version 0.7

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

Okay, looks like an issue with a composite. What are you monitoring?

from jmx_exporter.

amradk avatar amradk commented on May 23, 2024

It's our company's inner application.

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

So you've custom mBeans implemented? Can you turn on the debugging and see which mBean it is and what it's doing? See http://www.robustperception.io/viewing-logs-for-the-jmx-exporter/

from jmx_exporter.

amradk avatar amradk commented on May 23, 2024

I turned on debugging and jmx_exporter got some scrapr failed:
FINE: scrape: 'app_default-test-default-Recos:class=com.company.model.dao.SQLQueryService$$EnhancerByGuice$$5aaf4108'_'SQLQueryStatistics': Fail: javax.management.MBeanException: java.lang.reflect.InvocationTargetException
and
FINE: scrape: 'com.company.mxcache{service=CacheControl}CachesByGroup': tabulardata Aug 26, 2016 2:48:35 AM io.prometheus.jmx.JmxCollector collect SEVERE: JMX scrape failed: java.lang.NullPointerException at io.prometheus.jmx.JmxScraper.processBeanValue(JmxScraper.java:242) at io.prometheus.jmx.JmxScraper.scrapeBean(JmxScraper.java:145) at io.prometheus.jmx.JmxScraper.doScrape(JmxScraper.java:107) at io.prometheus.jmx.JmxCollector.collect(JmxCollector.java:320) at io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.findNextElement(CollectorRegistry.java:73) at io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.<init>(CollectorRegistry.java:65) at io.prometheus.client.CollectorRegistry.metricFamilySamples(CollectorRegistry.java:56) at io.prometheus.client.exporter.MetricsServlet.doGet(MetricsServlet.java:41) at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:365) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745)
and I can't see any metrics from JMV (such as java_lang_GarbageCollector_LastGcInfo_memoryUsageAfterGc_max{name="PS MarkSweep",key="Compressed Class Space",} 1.073741824E9) in debug output.

from jmx_exporter.

brian-brazil avatar brian-brazil commented on May 23, 2024

If you could debug your custom mBean and submit a unittest emulating how it's breaking we can get this fixed, as without your code I can't do much.

from jmx_exporter.

hlpdlpu avatar hlpdlpu commented on May 23, 2024

Hi ,this issue also happen in my project , do you resolve it?

from jmx_exporter.

amradk avatar amradk commented on May 23, 2024

Hi, no the problem is not resolved. At the end our developers is implement metric exporter direct into application.

from jmx_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.