Kafka Consumer Lag Checking
Перейти к файлу
Delweng Zheng c78ffb45e8 Fix(http notify): enable if Url is not empty 2016-07-11 09:13:36 +08:00
config improve: notify.interval default is 10 second 2016-07-11 09:11:43 +08:00
docker-config Added Dockerfile and Docker-compose to project 2016-05-23 17:26:11 +10:00
notifier update: with protocol enable 2016-07-11 09:11:43 +08:00
protocol update: with protocol enable 2016-07-11 09:11:43 +08:00
.gitignore Added Dockerfile and Docker-compose to project 2016-05-23 17:26:11 +10:00
.travis.yml Add Travis config and a single dummy test 2016-05-12 11:33:58 -07:00
CHANGELOG.md Add request info in http responses 2016-05-13 15:01:13 -07:00
Dockerfile No point in using wget when we have curl 2016-07-06 14:23:34 +02:00
Godeps Update Sarama to 1.8.0 release version for TLS support 2016-05-06 11:25:51 -07:00
LICENSE Initial commit 2015-06-02 06:03:10 -07:00
NOTICE Initial commit 2015-06-02 06:03:10 -07:00
README.md Added Dockerfile and Docker-compose to project 2016-05-23 17:26:11 +10:00
config.go improve: notify.interval default is 10 second 2016-07-11 09:11:43 +08:00
debug.go update: with protocol enable 2016-07-11 09:11:43 +08:00
docker-compose.yml Added Dockerfile and Docker-compose to project 2016-05-23 17:26:11 +10:00
http_server.go update: with protocol enable 2016-07-11 09:11:43 +08:00
kafka_client.go update: with protocol enable 2016-07-11 09:11:43 +08:00
logger.go Initial commit 2015-06-02 06:03:10 -07:00
main.go Move loadNotifiers to notify_center 2016-07-11 09:11:42 +08:00
main_test.go Add Travis config and a single dummy test 2016-05-12 11:33:58 -07:00
notify_center.go Fix(http notify): enable if Url is not empty 2016-07-11 09:13:36 +08:00
offsets_store.go update: with protocol enable 2016-07-11 09:11:43 +08:00
storm.go update: with protocol enable 2016-07-11 09:11:43 +08:00
zookeeper.go update: with protocol enable 2016-07-11 09:11:43 +08:00

README.md

Burrow - Kafka Consumer Lag Checking

Burrow is a monitoring companion for Apache Kafka that provides consumer lag checking as a service without the need for specifying thresholds. It monitors committed offsets for all consumers and calculates the status of those consumers on demand. An HTTP endpoint is provided to request status on demand, as well as provide other Kafka cluster information. There are also configurable notifiers that can send status out via email or HTTP calls to another service.

Features

  • NO THRESHOLDS! Groups are evaluated over a sliding window.
  • Multiple Kafka Cluster support
  • Automatically monitors all consumers using Kafka-committed offsets
  • Configurable support for Zookeeper-committed offsets
  • Configurable support for Storm-committed offsets
  • HTTP endpoint for consumer group status, as well as broker and consumer information
  • Configurable emailer for sending alerts for specific groups
  • Configurable HTTP client for sending alerts to another system for all groups

Getting Started

Prerequisites

Burrow is written in Go, so before you get started, you should install and set up Go.

If you have not yet installed the Go Package Manager, please go over there and follow their short installation instructions. GPM is used to automatically pull in the dependencies for Burrow so you don't have to chase them all down.

Build and Install

$ go get github.com/linkedin/burrow
$ cd $GOPATH/src/github.com/linkedin/burrow
$ gpm install
$ go install

Running Burrow

$ $GOPATH/bin/burrow --config path/to/burrow.cfg

Using Docker

A Docker file is available which builds this project on top of an Alpine Linux image. To use it, build your docker container, mount your Burrow configuration into /etc/burrow and run docker.

A Docker Compose is also available for quick and easy development.

Install Docker Compose and then:

  1. Build the docker container:

    docker-compose build
    
  2. Run the docker compose stack which includes kafka and zookeeper:

    docker-compose down; docker-compose up
    
  3. Some test topics have already been created by default and Burrow can be accessed on port 8000 of your docker-machine. e.g. http://192.168.99.100:8000/v2/kafka

Configuration

For information on how to write your configuration file, check out the detailed wiki

License

Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.