Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.12 KB

README.adoc

File metadata and controls

23 lines (14 loc) · 1.12 KB

Vert.x Kafka Client examples

Here you will find examples demonstrating the usage of the Vert.x Kafka Client.

Monitoring dashboard

The monitoring dashboard examples shows the usage of both the producer and consumer APIs of the Kafka client.

The MetricsVerticle.java uses the Kafka producer API to produce metrics in Json format.

The DashboardVerticle.java uses the Kafka consumer API to consume the metrics and send them to a monitoring dashboard using the Event Bus.

The MainVerticle.java is the main program you should start as it starts a Kafka broker and then configures the DashboardVerticle and the MetricsVerticle with their consumer and producer config.

Run the MainVerticle main method and then open your browser at http://localhost:8080/

In real usage the Kafka broker would probably be managed externally and the DashboardVerticle / MetricsVerticle executed separately with their own configuration.