Skip to content

SaskoMSYS/cassandra-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassandra prometheus exporter

This is a prometheus exporter for cassandra. It works by exporting dropwizard metrics from the cassandra core in the prometheus format. It's much more performant both in terms of memory and cpu resources than the prometheus jmx exporter.

Building

build the jar file

mvn package

How To

Copy the cassandra-prometheus-1.0-SNAPSHOT-jar-with-dependencies.jar to the deployment and run the cassandra instance with an extra -javaagent argument. e.g:

echo 'JVM_OPTS="$JVM_OPTS -javaagent:/usr/share/cassandra/lib/cassandra-prometheus-1.0-SNAPSHOT-jar-with-dependencies.jar=7400"' >> /etc/cassandra/cassandra-env.sh

Running the integration test

cd integrationtest
cp ../target/cassandra-prometheus-1.0-SNAPSHOT-jar-with-dependencies.jar cassandra/
docker-compose pull
docker-compose build
docker-compose up -d

Open a browser to the address 127.0.0.1:9090 and see that cassandra gets scraped.

About

prometheus exporter for cassandra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages