Code Monkey home page Code Monkey logo

kafka-hawk's Introduction

kafka-hawk

An application that records stats about consumer group offset commits and reports them as prometheus metrics.

This application is useful for determining how frequently each consumer group in your Kafka cluster is committing the offsets and, for the chattiest ones, it can calculate what the offset deltas are over time.

Building

If you wish to build the project you'll need JDK 11.

We also recommend Docker for running the local Kafka and Zookeeper instance for manual testing purposes.

Deployment

This application is packaged and designed to be deployed using a Docker image. It's available on Docker Hub as farmdawgnation/kafka-hawk.

Configuration

The application can be configured by environment variables for most cases.

  • BOOTSTRAP_SERVERS โ€” (required) The bootstrap servers setting for hawk
  • GROUP_ID - (optional) The group id, defaults to "hawk"
  • SASL_CONFIG - (optional) The SASL config if needed
  • CLUSTER_NAME - (optional) The custom name for this cluster (if any). Useful for situations where multiple instances of Hawk are deployed to monitor different clusters. Defaults to "kafka".
  • JSON_LOGGING - (optional) If this environment variable is present, logback will configure itself to use Logstash compatible JSON logs.

The application also has an optional feature that can report on the offset commit deltas. You have to enable this per consumer group because it requires more resources to track the offset diffs in memory. It can be enabled with and configured with the following environment variables:

  • FEATURES_DELTAS_ENABLED - Set to "true" to enable the feature
  • FEATURES_DELTAS_GROUPS - A comma separated list of groups to report deltas on

About the Author

This tool was written by Matt Farmer who by day slings code and architecture for Mailchimp's Data Application Development Team.

kafka-hawk's People

Contributors

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