GithubHelp home page GithubHelp logo

Comments (9)

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

Can you use relative paths?

from jmx_exporter.

kavyakul avatar kavyakul commented on July 30, 2024

i have to run jar as a service(using nssm), so relative path would be last thing to try.

from jmx_exporter.

jmlucjav avatar jmlucjav commented on July 30, 2024

I can use absolute paths in windows, watch out the slash/bakslashes...

-javaagent:c:\prometheus\jmx_exporter-parent-0.6\jmx_prometheus_javaagent\target\jmx_prometheus_javaagent-0.6.jar=9011:src/main/resources/prometheus-jmx.yml -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1

I am having other issues, but the paths do work.

from jmx_exporter.

kavyakul avatar kavyakul commented on July 30, 2024

Thanks, I will try out this now.
[UPDATE]
the problem is with config yml's absolute path, I am using relative path now, which is working as expected

from jmx_exporter.

kavyakul avatar kavyakul commented on July 30, 2024

Can I get Jvm version (java.lang.Runtime) form JMX-exporter metrics. I have not set any pattern but still I am getting only java_lang_Runtime Start & Uptime.

java_lang_Runtime_StartTime 1.455174377204E12
java_lang_Runtime_Uptime 54458.0

from jmx_exporter.

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

That's not exposed currently and the current jmx exporter doesn't do strings. This would be something to add to simpleclient_hotspot.

from jmx_exporter.

kavyakul avatar kavyakul commented on July 30, 2024

ok..thanks for the information!

from jmx_exporter.

bc-dhandapani avatar bc-dhandapani commented on July 30, 2024

java -javaagent:../../common/rd/jmx_prometheus_javaagent-0.12.0.jar=localhost:8080:config.yaml
Usage: -javaagent:/path/to/JavaAgent.jar=[host:]
:

I am getting usage error. How to resolve it

from jmx_exporter.

safvankothawala avatar safvankothawala commented on July 30, 2024

java -javaagent:jmx_prometheus_javaagent-0.12.0.jar=8080:config.yaml -jar EmployeeService-0.0.1-SNAPSHOT.jar

Error:
Usage: -javaagent:/path/to/JavaAgent.jar=[host:]:


The Problem was solved after modifying the config.yaml to following:
tartDelaySeconds: 0
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

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.