Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Kafka monitoring is a service written in golang that will help to monitor and calculate your SLO over your Kafka cluster. The service will start a Kafka producer who sends fake data to your Kafka cluster, collecting the result in different Prometheus metrics. Using these metrics we can create different alerts or dashboards.

License

NotificationsYou must be signed in to change notification settings

vmware-archive/service-level-indicator-exporter-for-kafka

Overview

Kafka monitoring is a service written in golang who will help you to monitoring and calculate your SLO over your kafka cluster. The service will start a kafka producer who sends fake data to your kafka cluster, collecting the result in different prometheus metrics. Using this metrics you can create different alerts or dashboards.

Getting Started

Start the kafka environ

The repo provide a makefile with some useful instruccion. You can start a kafka cluster with zookeeper using the docker-compose file in this project. This will deploy a simple local cluster in which you can test your service.

    make start-environ

Run kafka monitoring instance

Once you have the kafka cluster up and running you can start your kafka-monitoring instance and take a look on the metrics. We have 3 modes of running:

  • Producer: Running a kafka synchronous producer client
  • Consumer: Running a kafka consumer group
  • Both client. Running a producer and consumer in same app. Running producer and consumer in the same pod is not the preferred approach for many requests. Use it at your own risk.

You can run each one using the next commands:

    make run-producer    make run-consumer    make run-app

Nevertheless, you can build the service and run the binary. Next command will generate a binary inbin/kafka-slo-monitoring who you can run locally.

    make run-binary

Prometheus Metrics Overview

ValueTypeLabelsDescription
kafka_monitoring_cluster_upGaugeClusterKafka cluster with error connection. 1 if cluster is up, 0 if cluster is down
kafka_monitoring_total_messages_sendCounterCluster, TopicTotal messages send by the kafka monitoring services
kafka_monitoring_total_messages_readCounterCluster, TopicTotal messages read by the kafka monitoring services
kafka_monitoring_error_total_messages_sendCounterCluster, TopicTotal messages with errors send by the kafka monitoring services
kafka_monitoring_message_send_durationSummaryCluster, TopicLatency for kafka producer message send
kafka_monitoring_error_in_readCounterCluster, TopicErrors when consumer is trying to read from cluster

Read the full prometheus metrics docshere

Example dashboards

We provide couple of dashboard as an example for the main monitoring system like grafana or wavefront.

Inside the resources folder you will find angrafana example dashboard.

Wavefront Dashboard

Grafana Dashboard

Contributing

The service-level-indicator-exporter-for-kafka project team welcomes contributions from the community. Before you start working with service-level-indicator-exporter-for-kafka, pleaseread ourDeveloper Certificate of Origin. All contributions to this repository must besigned as described on that page. Your signature certifies that you wrote the patch or have the right to pass it onas an open-source patch. For more detailed information, refer toCONTRIBUTING.md.

License

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Kafka monitoring is a service written in golang that will help to monitor and calculate your SLO over your Kafka cluster. The service will start a Kafka producer who sends fake data to your Kafka cluster, collecting the result in different Prometheus metrics. Using these metrics we can create different alerts or dashboards.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp