GithubHelp home page GithubHelp logo

kafka-graphite's Introduction

Kafka Graphite Metrics Reporter

This plugin allows to export data from Kafka instance to Graphite directly. Kafka 0.10.2.+ support.

Plugin supports multiple interfaces:

  • Broker (kafka.metrics.KafkaMetricsReporter)
  • Clients (org.apache.kafka.common.metrics.MetricsReporter)

Install

Clients plugin could be integrated by defining next dependencies.

Maven

<dependency>
  <groupId>com.pakulov.kafka</groupId>
  <artifactId>kafka-graphite-clients</artifactId>
  <version>0.10.2</version>
</dependency>

Gradle

compile 'com.pakulov.kafka:kafka-graphite-clients:0.10.2'

Build

Broker plugin could be compiled with different Scala versions, use scalaVersion Gradle's property to define version

./gradlew -PscalaVersion=2.10.5 build 

There is also a way to build a deb package

./gradlew buildDeb

Usage

At first you have to configure kafka reporters server.properties file

For KafkaMetricsReporter use:

  • kafka.metrics.reporters=kafka.metrics.KafkaGraphiteMetricsReporter
  • kafka.graphite.metrics.jvm.enabled: Controls JVM metrics output (default: true)

For MetricsReporter use:

  • metric.reporters=org.apache.kafka.common.metrics.GraphiteReporter

Plugin has a set of possible parameters:

  • kafka.metrics.polling.interval.secs=60: Polling interval that will be used for all Kafka metrics
  • kafka.graphite.metrics.reporter.enabled: Enables actual plugin (default: false)
  • kafka.graphite.metrics.host: The graphite host to connect to (default: localhost)
  • kafka.graphite.metrics.port: The port to connect to (default: 2003)
  • kafka.graphite.metrics.prefix: The metric prefix that's sent with metric names (default: kafka)
  • kafka.graphite.metrics.include: A regular expression allowing explicitly include certain metrics (default: null)
  • kafka.graphite.metrics.exclude: A regular expression allowing you to exclude certain metrics (default: null)

kafka-graphite's People

Contributors

apakulov avatar epheatt avatar jklukas avatar

Stargazers

 avatar

Watchers

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