Giter Club home page Giter Club logo

kminion's Introduction

Prometheus Exporter for Apache Kafka - KMinion

KMinion (previously known as Kafka Minion) is a feature-rich and flexible Prometheus Exporter to monitor your Apache Kafka cluster. All valuable information that are accessible via the Kafka protocol are supposed to be accessible using KMinion.

๐Ÿš€ Features

  • Kafka versions: Supports all Kafka versions v0.11+
  • Supported SASL mechanisms: plain, scram-sha-256/512, gssapi/kerberos
  • TLS support: TLS is supported, regardless whether you need mTLS, a custom CA, encrypted keys or just the trusted root certs
  • Consumer Group Lags: Number of messages a consumer group is lagging behind the latest offset
  • Log dir sizes: Metric for log dir sizes either grouped by broker or by topic
  • Broker info: Metric for each broker with its address, broker id, controller and rack id
  • Configurable granularity: Export metrics (e.g. consumer group lags) either per partition or per topic. Helps to reduce the number of exported metric series.
  • End to End Monitoring: Sends messages to its own topic and consumes them, measuring a messages real-world "roundtrip" latency. Also provides ack-latency and offset-commit-latency. More Info
  • Configurable targets: You can configure what topics or groups you'd like to export using regex expressions
  • Multiple config parsers: It's possible to configure KMinion using YAML, Environment variables or a mix of both

You can find a list of all exported metrics here: /docs/metrics.md

Getting started

๐Ÿณ Docker image

All images will be built on each push to master or for every new release. You can find an overview of all available tags in our DockerHub repository.

docker pull redpandadata/kminion:latest

โ˜ธ Helm chart

A Helm chart will be maintained as part of this repository under /charts.

๐Ÿ”ง Configuration

All options in KMinion can be configured via YAML or environment variables. Configuring some options via YAML and some via environment variables is also possible. Environment variables take precedence in this case. You can find the reference config with additional documentation in /docs/reference-config.yaml.

If you want to use a YAML config file, specify the path to the config file by setting the env variable CONFIG_FILEPATH.

๐Ÿ“Š Grafana Dashboards

I uploaded three separate Grafana dashboards that can be used as inspiration in order to create your own dashboards. Please take note that these dashboards might not immediately work for you due to different labeling in your Prometheus config.

Cluster Dashboard: https://grafana.com/grafana/dashboards/14012

Consumer Group Dashboard: https://grafana.com/grafana/dashboards/14014

Topic Dashboard: https://grafana.com/grafana/dashboards/14013

โšก Testing locally

This repo contains a docker-compose file that you can run on your machine. It will spin up a Kafka & ZooKeeper cluster and starts KMinion on port 8080 which is exposed to your host machine:

# 1. Clone this repo
# 2. Browse to the repo's root directory and run:
docker-compose up

Chat with us

We use Slack to communicate. If you are looking for more interactive discussions or support, you are invited to join our Slack server: https://redpanda.com/slack

License

KMinion is distributed under the MIT License.

kminion's People

Contributors

weeco avatar rikimaru0345 avatar amuraru avatar antvick avatar wreet avatar alenkacz avatar gavinheavyside avatar sbocinec avatar moserke avatar simon0191 avatar bitprocessor avatar scandiravian avatar rashidwh avatar mrandreyeff avatar themeier avatar andrewhsu avatar rjmasikome avatar stoader avatar rd-michael-pasdziernik avatar van-vliet avatar joejulian avatar hhromic avatar alexander-falca avatar cruwe avatar panyuenlau avatar joschalaubach avatar sh1ftry avatar rsteneteg avatar rmb938 avatar solsson 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.