Run jmx_exporter on Windows10

14 views
Skip to first unread message

Manu Chadha

unread,
Dec 18, 2020, 7:26:33 AM12/18/20
to Prometheus Users
Hi

I am following this tutorial to run jmx_exporter` with cassandra


I have found that instead of changing JVM_OPTS in cassandra-env.sh file, I should change bin/cassandra.bat to make javaagent work (I tried adding JVM_OPTS in both .sh and .ps1 but none worked)


The challenge I am facing is converting

JVM_OPTS="$JVM_OPTS -javaagent:'$PWD/jmx_prometheus_javaagent-0.3.0.jar=7070:$PWD/cassandra.yml'"' 

into equivalent in the .bat file

I have tried the following but none works

 -javaagent:"C:\Users\manuc\Documents\manu\apache-cassandra-3.11.6-for-scalardb\jmx_prometheus_javaagent-0.3.0.jar=7070:cassandra.yml"^

and

 -javaagent:"%CASSANDRA_HOME%\jmx_prometheus_javaagent-0.3.0.jar=7070:%CASSANDRA_HOME%\cassandra.yml"^

I see error - The filename, directory name, or volume label syntax is incorrect.

Has anyone tried running jmx on windows? Any tips on how I can solve the issue?

 
Reply all
Reply to author
Forward
0 new messages