项目作者: rocel

项目描述 :
A Kafka Web Consumer
高级语言: Vue
项目地址: git://github.com/rocel/kafka-web-consumer.git
创建时间: 2018-04-15T00:34:07Z
项目社区:https://github.com/rocel/kafka-web-consumer

开源协议:

下载


  1. _ __ _ _
  2. | | ____ _ / _| | ____ _ __ _____| |__ ___ ___ _ __ ___ _ _ _ __ ___ ___ _ __
  3. | |/ / _` | |_| |/ / _` |____\ \ /\ / / _ \ '_ \ _____ / __/ _ \| '_ \/ __| | | | '_ ` _ \ / _ \ '__|
  4. | < (_| | _| < (_| |_____\ V V / __/ |_) |_____| (_| (_) | | | \__ \ |_| | | | | | | __/ |
  5. |_|\_\__,_|_| |_|\_\__,_| \_/\_/ \___|_.__/ \___\___/|_| |_|___/\__,_|_| |_| |_|\___|_|

The kafka web consumer is a tool that reads data from Kafka and display them in a web UI.

Table of contnent

HOW TO USE:

  1. usage: kafka-web-consumer
  2. -b,--bootstrap-server <arg> REQUIRED: The server to connect to.
  3. -bs,--buffer-size <arg> Size of the buffer on the UI.
  4. -c,--component <arg> REQUIRED: Client component viewer [cards,
  5. list, map, pivot, table].
  6. -fb,--from-beginning If the consumer does not already have an
  7. established offset to consume from, start
  8. with the earliest message present in the
  9. log rather than the latest message
  10. -h,--help Prints this message.
  11. -p,--port <arg> Port on which will start Kafka-Web-Consumer
  12. -t,--topic <arg> REQUIRED: The topic id to consume on.

Configuration

The configuration file, needed for the Map Component, must be created in the $HOME folder with the name .kwc.

It uses the HOCON format.

Components

Cards

The cards component display the data . You must select the key from the data for every card.

Screenshot:
map

List

The list component display the raw data.

Screenshot:
map

Map

This components uses on The mapbox WebGL component. As it relies on MapBox, you will need a access-token (You can create one here).
The access-token must be saved into the the configuration file as the following:

  1. mabox {
  2. access-token: "MY_ACCESS_TOKEN_FROM_MAPBOX"
  3. }

Screenshot:
map

Pivot

This component uses the Perspective library from JPMorgan And Chase : https://jpmorganchase.github.io/perspective

Screenshot:
map

Table

The table component displays the data into a table. Columns are automatically mapped from the data.

Screenshot:
map