MCPcopy
hub / github.com/linkedin/Burrow

github.com/linkedin/Burrow @v1.9.6 sqlite

repository ↗ · DeepWiki ↗ · release v1.9.6 ↗
774 symbols 2,451 edges 67 files 325 documented · 42%
README

Release Join the chat at https://gitter.im/linkedin-Burrow/Lobby Build Status go report card Coverage Status GoDoc

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. As the dependencies are managed using Go module, the lowest version of Go supported is 1.11, though we recommend using version 1.12 for development.

Build and Install

$ Clone github.com/linkedin/Burrow to a directory outside of $GOPATH. Alternatively, you can export GO111MODULE=on to enable Go module.
$ cd to the source directory.
$ go mod tidy
$ go install

Running Burrow

$ $GOPATH/bin/Burrow --config-dir /path/containing/config

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 http://localhost:8000/v3/kafka.

Configuration

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

License

Copyright 2017 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.

Extension points exported contracts — how you extend this code

Coordinator (Interface)
Coordinator is a common interface for all subsystem coordinators so that the core routine can manage them in a consisten [16 …
core/protocol/protocol.go
Ticker (Interface)
Ticker is a generic interface for a channel that delivers `ticks' of a clock at intervals. [2 implementers]
core/internal/helpers/time.go
ZookeeperClient (Interface)
ZookeeperClient is a minimal interface for working with a Zookeeper connection. We provide this interface, rather than u [2 …
core/protocol/protocol.go
SaramaClient (Interface)
SaramaClient is an internal interface to the sarama.Client. We use our own interface because while sarama.Client is an i [2 …
core/internal/helpers/sarama.go
ZookeeperLock (Interface)
ZookeeperLock is an interface for the operation of a lock in Zookeeper. Multiple Zookeeper clients, using the same lock [2 …
core/protocol/protocol.go
SaramaBroker (Interface)
SaramaBroker is an internal interface on the sarama.Broker struct. It is used with the SaramaClient interface in order t [2 …
core/internal/helpers/sarama.go
Module (Interface)
Module is a common interface for all modules so that they can be manipulated by the coordinators in the same way. The in
core/protocol/protocol.go
Module (Interface)
Module (storage) is responsible for maintaining all the broker and consumer offsets for all clusters that Burrow watches
core/internal/storage/coordinator.go

Core symbols most depended-on inside this repo

String
called by 206
core/protocol/evaluator.go
Error
called by 126
core/internal/evaluator/caching.go
Configure
called by 103
core/protocol/protocol.go
ServeHTTP
called by 42
core/internal/httpserver/coordinator.go
Done
called by 34
core/internal/helpers/scram.go
Stop
called by 26
core/internal/helpers/time.go
Lock
called by 24
core/protocol/protocol.go
Unlock
called by 24
core/protocol/protocol.go

Shape

Function 353
Method 311
Struct 96
Interface 10
TypeAlias 4

Languages

Go100%

Modules by API surface

core/internal/helpers/sarama.go86 symbols
core/internal/storage/inmemory_test.go53 symbols
core/internal/consumer/kafka_client_test.go49 symbols
core/internal/storage/inmemory.go34 symbols
core/internal/httpserver/structs.go29 symbols
core/internal/consumer/kafka_client.go29 symbols
core/internal/notifier/coordinator.go23 symbols
core/internal/helpers/zookeeper.go23 symbols
core/protocol/protocol.go20 symbols
core/internal/evaluator/caching.go19 symbols
core/internal/consumer/kafka_zk_client.go18 symbols
core/internal/notifier/coordinator_test.go17 symbols

Dependencies from manifests, versioned

github.com/IBM/saramav1.46.1 · 1×
github.com/OneOfOne/xxhashv1.2.8 · 1×
github.com/aws/aws-msk-iam-sasl-signer-gov1.0.4 · 1×
github.com/aws/aws-sdk-go-v2v1.39.2 · 1×
github.com/aws/aws-sdk-go-v2/configv1.31.12 · 1×
github.com/aws/aws-sdk-go-v2/credentialsv1.18.16 · 1×
github.com/aws/aws-sdk-go-v2/feature/ec2/imdsv1.18.9 · 1×
github.com/aws/aws-sdk-go-v2/internal/configsourcesv1.4.9 · 1×
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2v2.7.9 · 1×
github.com/aws/aws-sdk-go-v2/internal/iniv1.8.3 · 1×
github.com/aws/aws-sdk-go-v2/service/internal/accept-encodingv1.13.1 · 1×
github.com/aws/aws-sdk-go-v2/service/internal/presigned-urlv1.13.9 · 1×

For agents

$ claude mcp add Burrow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact