Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fpapon/kafka-labs


https://github.com/fpapon/kafka-labs

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

image::https://github.com/fpapon/kafka-labs/actions/workflows/maven.yml/badge.svg?branch=main[Github CI]

= Apache Kafka Labs

A labs project to show how to use Kafka Client in a native way without dependency injection framework.

== Pre-requisite

* Java 21+
* Maven 3.8.x+

== Build

[source, bash]
----
mvn clean install
----

== Run locally

Using the maven exec plugin:

[source, bash]
----
mvn exec:java
----

Using a shell script:

[source, bash]
----
./start.sh
----

== Build docker image

[source, bash]
----
mvn package jib:dockerBuild -DskipTests
----

== Opentelemetry

[source, bash]
----
java -javaagent:./target/opentelemetry/opentelemetry.jar -Dotel.traces.exporter=none -Dotel.logs.exporter=none -Dotel.metrics.exporter=prometheus -Dotel.exporter.prometheus.port=12345 \
----

[source, bash]
----
curl http://localhost:12345
----