Giter Club home page Giter Club logo

telegraf-cassandra's Introduction

telegraf-cassandra

Config for monitoring Cassandra using Telegraf's "Jolokia" plugin

Overview:

I've wanted to get away from the "metrics-graphite.jar" method of getting metrics from Cassandra for a long time. While it is possible to do this with Collectd and the "JMX" plugin, it involves "hacking" the CollectD protocol a little bit to get the number of tags required to make useful graphs (particularly when you get down to the "Tables grouped by KeySpace" level).

Aim:

  • To have metrics delivered to a central InfluxDB cluster
  • To have metrics fully tagged (enables powerful "GROUP BY" queries)
  • To enforce SSL and authentication on the InfluxDB end (which means no collectd or tsdb plugins)

The solution:

  • Download the Jolokia-agent JAR file to /usr/share/java: http://search.maven.org/remotecontent?filepath=org/jolokia/jolokia-jvm/1.3.2/jolokia-jvm-1.3.2-agent.jar
  • Configure Cassandra's startup script to include the Jolokia agent with the defaults file provided in etc/default/cassandra, then re-start Cassandra. It should now be running Jolokia (listening on http://localhost:8778)
  • Install telegraf https://influxdata.com/downloads/
  • Use the config file provided under etc/telegraf/telegraf.d/telegraf-jolokia-cassandra.conf - this will periodically collect the pre-defined metrics from Jolkia, and Telegraf will forward them to wherever you like
  • Import the Grafana dashboard Cassandra-Performance.json (created against a datasource called "InfluxDB (Telegraf)")
  • Profit!

The problems remaining to be solved:

  • You'll notice a section of commented-out wildcard metrics in the lower half of the Telegraf config file. While these DO work, they will cruft up the InfluxDB database (because they don't come back broken into tags). This will ruin your clean experience. It may require a modification to the Jolokia plugin, or an inspiring configuration alternative.

telegraf-cassandra's People

Contributors

chrusty avatar

Watchers

James Cloos avatar  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.