• Stars
    star
    574
  • Rank 74,702 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created about 5 years ago
  • Updated 21 days 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++
8,722
star
2

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,592
star
3

awesome-distributed-transactions

Awesome list of distributed transactions
723
star
4

deployment-automation

Cluster configuration best practices
HCL
59
star
5

helm-charts

Redpanda Helm Chart
Go
53
star
6

openmessaging-benchmark

Java
33
star
7

redpanda-operator

Go
31
star
8

observability

Python
30
star
9

seastar-starter

Seastar boilerplate project with cmake
C++
29
star
10

redpanda-edge-agent

Lightweight internet of things agent that forwards events from the edge
Go
22
star
11

redpanda-labs

The home for Redpanda Labs projects.
Go
12
star
12

client-swarm

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

redpanda-ansible-collection

Jinja
6
star
14

chaos

Python
5
star
15

github-action

Shell
5
star
16

redpanda-examples

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

alien_thread

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

2023-stream-processing-apache-flink-redpanda

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

kgo-verifier

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

flink-kafka-examples

A repo of Java examples using Apache Flink with flink-connector-kafka
Java
4
star
21

docs

Open source content for the Redpanda documentation
JavaScript
3
star
22

terraform-provider-redpanda

Go
3
star
23

docs-extensions-and-macros

Extensions and macros developed for Redpanda documentation.
JavaScript
2
star
24

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
25

docs-ui

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

kubecon-na-2023

Different Redpanda in Kubernetes Deployment Examples
Shell
1
star
27

how-to-connect-code-snippets

1
star
28

databalancer

Go
1
star
29

2023-unify-log-data-parseable

1
star
30

homebrew-tap

Redpanda Homebrew Tap
Ruby
1
star
31

terraform-aws-redpanda-cluster

HCL
1
star
32

gcp-psc

HCL
1
star
33

kafka-fsync

Dockerfile
1
star
34

common-go

Go
1
star