GithubHelp home page GithubHelp logo

mvkg's Introduction

Minimum viable Kafka Graphite

Inspired from dlutzy's excellent mvredisgraphite by proxy via neilprosser's mvsg here is mvkg.

Hopefully pretty simple to use, make sure mvkg.py and mvkg.sh are in the same folder and set the following environment variables:

  • ENVIRONMENT - basically a prefix
  • KAFKA_HOST - the host on which Kafka Jolokia is running
  • KAFKA_PORT - the port on which Kafka Jolokia is running
  • CARBON_HOST - the host on which Carbon is running
  • CARBON_PORT - the port on which Carbon is receiving metrics
  • RANDOM_SLEEP - an optional setting which will make the script sleep between 1 and $RANDOM_SLEEP seconds after retrieving the metrics but before sending them to Carbon (defaults to 0, which is off)
  • OMIT_JVM_STATS - an optional setting which will cause the script to omit JVM metrics, handy if you are using some other method to get JVM-level metrics into Carbon (defaults to false)

Then run mvkg.sh from wherever you've put it. It'll gather the metrics from Jolokia and fire them over to Carbon.

Ensure the KAFKA_JMX_OPTS in your init.d script includes the jolokia agent jar and options "-javaagent:/opt/confluent/confluent-3.2.1/jolokia-jvm-1.2.3-agent.jar=port=9080,host=0.0.0.0"

This will start creating metrics with a prefix of $ENVIRONMENT.$HOST. It's a bit specific to my use-case, any customisations are more than welcome.

mvkg's People

Contributors

epheatt avatar

Watchers

James Cloos avatar  avatar

mvkg's Issues

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.