Hi Sunitha,
Yes i installed JMX exporter.
Step1:
#wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.10/jmx_prometheus_javaagent-0.10.jar
#wget https://raw.githubusercontent.com/prometheus/jmx_exporter/master/example_configs/cassandra.yml
Note:Check for the latest version and install.
#chown cassandra:cassandra jmx_prometheus_javaagent-0.10.jar
Step2:Add below line at the end of “cassandra-env.sh”:
JVM_OPTS="$JVM_OPTS -Dcassandra.metricsReporterConfigFile=metrics_reporter_graphite.yaml"
Step3:Restart cassandra
Step4:If you visit http://localhost:7070/metrics you’ll see the metrics.
Step5: Add below lines to prometheus.yml
- job_name: ‘cassandra’
static_configs:- targets: [‘ip:7070’]
Step6: Restart prometheus and check