/burrow_exporter

A Prometheus Exporter for gathering Kafka consumer group info from Burrow

Primary LanguageGoApache License 2.0Apache-2.0

Prometheus Burrow Exporter

This repository is no longer maintained, since burrow version 1.3.4 there is native support for prometheus metrics.

A Prometheus Exporter for gathering Kafka consumer group info from Burrow.

This project is a hard-fork of jirwin/burrow_exporter.

It was largely refactored with the following changes:

  • Uses custom collector implementation, to avoid scraping periodically
  • By using custom collector, stale metrics are automatically removed from output
  • Reorganized with prometheus recommended project structure
  • Using promu tool to build project
  • Using prometheus recommended libraries for logger and flags
  • Migrated to Go modules from Glide

Usage

usage: burrow_exporter [<flags>]

Flags:
  -h, --help                  Show context-sensitive help (also try --help-long
                              and --help-man).
  -l, --web.listen-address=":8237"
                              Address to listen on for web interface and
                              telemetry.
      --web.telemetry-path="/metrics"
                              Path under which to expose metrics.
      --burrow.address="http://localhost:8000"
                              Burrow API address.
      --burrow.api-version=3  Burrow API version to leverage.
      --collector.disabled-metrics=""
                              Comma separated list of metrics to disable (one
                              of: consumer-status, partition-current-offset,
                              partition-lag, partition-max-offset,
                              partition-status, topic-partition-offset,
                              total-lag).
      --log.level="info"      Only log messages with the given severity or
                              above. Valid levels: [debug, info, warn, error,
                              fatal]
      --log.format="logger:stderr"
                              Set the log target and format. Example:
                              "logger:syslog?appname=bob&local=7" or
                              "logger:stdout?json=true"
      --version               Show application version.

Run with Docker

docker run -p 8237:8237 simenduev/burrow-exporter \
  --burrow.address http://localhost:8000