GithubHelp home page GithubHelp logo

Comments (8)

brian-brazil avatar brian-brazil commented on July 30, 2024

Is there an exception we're not catching?

from jmx_exporter.

sdurrheimer avatar sdurrheimer commented on July 30, 2024

No issues or exception with the jmx_exporter directly. In my case, I have a full-featured application that takes about 2min to startup. During the starting process, if my Prometheus instance try to scrape the jmx_exporter, some component of the application fail to initialize (I don't really know why, but maybe due to the fact that the jmx_exporter is querying the JVM for metrics at the same time).

The real solution would be to try to fix this bug in this (proprietary) application, or even use direct instrumentation with the java_client, but for now we don't have the time/budget for it.

We talked briefly of this on IRC, and you suggest to add a timeout on start as a "quick solution" to avoid the problem.

from jmx_exporter.

sdurrheimer avatar sdurrheimer commented on July 30, 2024

@brian-brazil do you think this is something we can do ?

from jmx_exporter.

brian-brazil avatar brian-brazil commented on July 30, 2024

Feel free to send a PR

from jmx_exporter.

cfrantsen avatar cfrantsen commented on July 30, 2024

This would be useful for me to as we are seeing alot of error log when starting WildFly if prometheus happens to scrape the java agent during startup.

Until I get around to looking at this, here is an example of how to implement this if someone else feels like taking a look at it :)

https://github.com/jmxtrans/jmxtrans-agent/blob/master/src/main/java/org/jmxtrans/agent/JmxTransAgent.java#L68

from jmx_exporter.

samueletonon avatar samueletonon commented on July 30, 2024

+1 on this feature as we are facing the same problem

from jmx_exporter.

qixiaobo avatar qixiaobo commented on July 30, 2024

Any progress?

from jmx_exporter.

qixiaobo avatar qixiaobo commented on July 30, 2024

Any progress?

Sorry for not seeing this pr! It's a great work to handle with my init error!

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.