• Stars
    star
    615
  • Rank 72,947 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.

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:v2.2.3

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.

More Repositories

1

redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
C++
9,485
star
2

connect

Fancy stream processing made operationally mundane
Go
8,113
star
3

console

Redpanda Console is a developer-friendly UI for managing your Kafka/Redpanda workloads. Console gives you a simple, interactive approach for gaining visibility into your topics, masking data, managing consumer groups, and exploring real-time data with time-travel debugging.
Go
3,769
star
4

awesome-distributed-transactions

Awesome list of distributed transactions
725
star
5

benthos

Go
205
star
6

redpanda-connect-plugin-example

Benthos plugin examples
Go
89
star
7

helm-charts

Redpanda Helm Chart
Go
75
star
8

deployment-automation

Cluster configuration best practices
HCL
64
star
9

redpanda-operator

Go
36
star
10

openmessaging-benchmark

Java
35
star
11

observability

Python
34
star
12

redpanda-connect-helm-chart

Helm 3 repository for benthosdev/benthos
Smarty
34
star
13

seastar-starter

Seastar boilerplate project with cmake
C++
30
star
14

redpanda-edge-agent

Lightweight internet of things agent that forwards events from the edge
Go
28
star
15

pglogicalstream

PostgreSQL Logical Replication CDC Module for Streaming Database Changes with Golang
Go
23
star
16

redpanda-labs

The home for Redpanda Labs projects.
Go
22
star
17

pg_stream

Postgres Logical Replication plugin for benthos
Go
18
star
18

redpanda-examples

A collection of examples to demonstrate how to interact with Redpanda from various clients and languages.
Go
9
star
19

redpanda-ansible-collection

Python
7
star
20

docs-extensions-and-macros

Extensions and macros developed for Redpanda documentation.
JavaScript
6
star
21

client-swarm

Test utility for running large numbers of concurrent client sessions
Rust
6
star
22

chaos

Python
6
star
23

terraform-provider-redpanda

Go
6
star
24

flink-kafka-examples

A repo of Java examples using Apache Flink with flink-connector-kafka
Java
6
star
25

rp-connect-docs

Documentation for Redpanda Connect
Shell
6
star
26

docs

Open source content for the Redpanda documentation
JavaScript
5
star
27

github-action

Shell
5
star
28

kgo-verifier

Test utility based on franz-go, for consistency checking of Redpanda reads vs. writes
Go
5
star
29

2023-stream-processing-apache-flink-redpanda

Repository containing all the code you need to build a simple streaming ETL pipeline from scratch.
Python
5
star
30

alien_thread

Tools for interoperating with native threads from Seastar
C++
4
star
31

common-go

Go
3
star
32

terraform-aws-redpanda-cluster

HCL
3
star
33

2023-build-time-series-data-stream-timescale-db

This is the GitHub repo for the Redpanda tutorial on building a time series data stream using TimescaleDB
Dockerfile
2
star
34

docs-ui

UI project for the Redpanda documentation site.
CSS
2
star
35

cloud-docs

Redpanda Cloud documentation
JavaScript
2
star
36

kubecon-na-2023

Different Redpanda in Kubernetes Deployment Examples
Shell
1
star
37

how-to-connect-code-snippets

1
star
38

databalancer

Go
1
star
39

2023-unify-log-data-parseable

1
star
40

homebrew-tap

Redpanda Homebrew Tap
Ruby
1
star
41

gcp-psc

HCL
1
star
42

kafka-fsync

Dockerfile
1
star
43

developer-diaries

This repository serves as a comprehensive resource for beginner and intermediate learners in the fields of data engineering and analytics. It contains a curated collection of sketch notes designed to simplify complex concepts and system designs through visual diagrams and concise summaries.
1
star