Git Product home page Git Product logo

casspoke's Introduction

Cassandra Exporter travis badge

logo

Description

Casspoke is a blackbox probe measuring Apache Cassandra® availibility and latency. It exposes metrics throught an prometheus friendly endpoint. The probe will connect to cassandra and:

  • Listen for topology change (like a node changing state from UN to DN) and expose the availibility throught metric
  • Send periodically to each node write and read requests to the system_traces.events table in order to measure latency to this node

How to use

To start the application

java -jar casspoke.jar config.yml

The prometheus endpoint is available at http://localhost:{httpServerPort} (8080 by default)

For the configuration take a loot at https://github.com/criteo/casspoke/blob/master/config.yml

There are 2 main sections: {app, discovery}

app:
  # A measurement should be taken every x seconds
  measurementPeriodInSec: 10
  # Operations timeout
  timeoutInSec: 60
  # Discovery of the cluster should be re-done every x seconds (useful if you use consul)
  refreshDiscoveryPeriodInSec: 600
  # Prometheus http server port endpoint
  httpServerPort: 8080
  # Optional: username used to auth to cassandra
  # username: user
  # Optional: password used to auth to cassandra
  # password: password

discovery:
  dns:
    - clustername: cstars01
      host: cstars01-seed1.fqdn:9042,cstars01-seed2.fqdn:9042
    - clustername: cstars02
      host: cstars02-seed1.fqdn:9042,cstars02-seed2.fqdn:9042
#  consul:
#    host: consul.service.consul
#    port: 8500
#    timeoutInSec: 10
#    readConsistency: STALE
#    tags:
#      - cluster=cstars01
#      #- cassandra

How to build

At the root of the project, just do a

gradle build

you will find the jar in build/libs directory

Docker

docker run --rm --net=host -v $(pwd)/config.yml:/opt/casspoke/config.yml criteord/casspoke:1.2

casspoke's People

Contributors

ashangit avatar deimosfr avatar dveim avatar emmanuelguerin avatar erebe avatar geobeau avatar

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.