Technolords :: Tool :: Kafka :: Healthcheck

A health check for a Kafka broker

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.technolords.tool.kafka
Идентификатор

Идентификатор

health-check
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Technolords :: Tool :: Kafka :: Healthcheck
A health check for a Kafka broker
Ссылка на сайт

Ссылка на сайт

https://github.com/Technolords/tool-kafka-healthcheck
Система контроля версий

Система контроля версий

https://github.com/Technolords/tool-kafka-healthcheck/

Скачать health-check

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/net.technolords.tool.kafka/health-check/ -->
<dependency>
    <groupId>net.technolords.tool.kafka</groupId>
    <artifactId>health-check</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.technolords.tool.kafka/health-check/
implementation 'net.technolords.tool.kafka:health-check:1.0.0'
// https://jarcasting.com/artifacts/net.technolords.tool.kafka/health-check/
implementation ("net.technolords.tool.kafka:health-check:1.0.0")
'net.technolords.tool.kafka:health-check:jar:1.0.0'
<dependency org="net.technolords.tool.kafka" name="health-check" rev="1.0.0">
  <artifact name="health-check" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.technolords.tool.kafka', module='health-check', version='1.0.0')
)
libraryDependencies += "net.technolords.tool.kafka" % "health-check" % "1.0.0"
[net.technolords.tool.kafka/health-check "1.0.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.14.2

Модули Проекта

Данный проект не имеет модулей.

Health check for a Kafka broker

This (nano) service scans for a running Kafka broker and reports the status. The purpose of this service is to support implementation a health check (Bash script, Docker health check, Openshift, etc). Note that it expects a single instance of a Kafka broker and stops at the first found candidate.

This service does not create a topic and posts messages on it etc (as many other health checkers do). Instead, this service uses JMX to connect (locally) to the Kafka broker, finds a MBean on interest and reads (and prints to stdout) the status and then terminates.

Possible status values are:

  • 0: not running
  • 1: starting
  • 2: recovering from unclean shutdown
  • 3: running
  • 6: pending controlled shutdown
  • 7: shutting down

See also:

Usage

Example input:

java -jar health-check-${VERSION}.jar

Example output:

3

Версии библиотеки

Версия
1.0.0