Thanks. I tried it but I still don’t see anything on http://localhost:9103/.
My suspicion is that I am not putting the jars or am not setting the JVM_OPTS correctly or maybe the path is not being picked correctly considering that I am on windows machine and .sh is basically a unix script. I have tried three exporters and they all seem to have issues (except for Cassandra exporter standalone which works fine - https://github.com/criteo/cassandra_exporter). So I am getting more certain that I am not putting javaagent correctly. I downloaded the jar from https://github.com/datastax/metric-collector-for-apache-cassandra/releases/tag/v0.1.13 Then unzipped it I added path like this MCAC_ROOT="C:\\Users\\manuc\\Documents\\manu\\datastax-mcac-agent-0.1.13" JVM_OPTS="$JVM_OPTS -javaagent:${MCAC_ROOT}\\lib\\datastax-mcac-agent.jar" And then restarted Cassandra but no love ☹ Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Ahmed Eljami<mailto:ahmed.elj...@gmail.com> Sent: 18 December 2020 09:21 To: user@cassandra.apache.org<mailto:user@cassandra.apache.org> Subject: Re: Cassandra monitoring Hi, I suggest you try MCAC for DataStax, available here => https://github.com/datastax/metric-collector-for-apache-cassandra Cheers, Le ven. 18 déc. 2020 à 10:01, Manu Chadha <manu.cha...@hotmail.com<mailto:manu.cha...@hotmail.com>> a écrit : Sorry, clicked send too soon. I am trying to use Prometheus and followed this tutorial - https://www.robustperception.io/monitoring-cassandra-with-prometheus I thought I’ll test it on my Windows laptop first but I can’t connect with using localhost:7199. As I am on Windows, instead of echo 'JVM_OPTS="$JVM_OPTS -javaagent:'$PWD/jmx_prometheus_javaagent-0.3.0.jar=7070:$PWD/cassandra.yml'"' >> conf/cassandra-env.sh, I have added the following line in the cassandra-env.ps1 (I don’t know to be honest if I should have) # Default JMX setup, bound to local loopback address only $env:JVM_OPTS="$env:JVM_OPTS -Dcassandra.jmx.local.port=$JMX_PORT" $env:JVM_OPTS="$env:JVM_OPTS -javaagent:'$PWD/jmx_prometheus_javaagent-0.3.0.jar=7070:$PWD/cassandra.yml'"' <-- HERE $env:JVM_OPTS="$env:JVM_OPTS $env:JVM_EXTRA_OPTS" } but http://localhost:7070/metrics doesn't work I have also tried to do the original change in cassandar.yaml i.e. JVM_OPTS="$JVM_OPTS -javaagent:'$PWD/jmx_prometheus_javaagent-0.3.0.jar=7070:$PWD/cassandra.yml But I still can’t access the metrics. Any help or other suggestions about monitoring would be welcome. Thanks Manu Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Manu Chadha<mailto:manu.cha...@hotmail.com> Sent: 18 December 2020 08:57 To: user@cassandra.apache.org<mailto:user@cassandra.apache.org> Subject: Cassandra monitoring Hi Could the group please suggest options for monitoring Cassandra in production (GCP)? I am trying to use Prometheus and followed this tutorial - https://www.robustperception.io/monitoring-cassandra-with-prometheus Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 -- Cordialement; Ahmed ELJAMI