Giter Club home page Giter Club logo

kbe-pipeline's Introduction

Kafka-Benthos-Elasticsearch Pipeline

This is a docker-compose configuration for a pipeline that reads data from a Kafka topic, processes it with Benthos, and stores it in Elasticsearch.

Prerequisites

You will need to have Docker and Docker Compose installed in your system.

Configuration

The pipeline consists of the following services:

  • zookeeper: Apache ZooKeeper instance used by Kafka for coordination.
  • kafka: Apache Kafka instance used as the data source and sink for the pipeline.
  • elasticsearch: Elasticsearch instance used as the storage backend for the pipeline.
  • kibana: Kibana instance used as a web-based UI to visualize Elasticsearch data.
  • benthos: Benthos instance used as the processing engine for the pipeline.

The configuration of the pipeline is defined in the docker-compose.yml file. By default, the pipeline reads data from a Kafka topic named kbe-topic, applies a Benthos pipeline that simply logs the messages to the console, and stores the messages in Elasticsearch under an index named kbe-index.

If you need to modify the pipeline configuration, you can do so by editing the docker-compose.yml file directly or by providing an alternative configuration file using the -f option of docker-compose.

Running the pipeline

To run the pipeline, execute the following command in the same directory as the docker-compose.yml file:

docker-compose up

This will start all the required services and display their logs in the console. If you want to run the pipeline in detached mode, you can use the -d option:

docker-compose up -d

To stop the pipeline and remove the containers, use the following command:

docker-compose down

Accessing the data

You can access the Kibana UI by opening a web browser and navigating to http://localhost:5601. From there, you can create visualizations and dashboards based on the data stored in Elasticsearch.

To access Elasticsearch directly, you can use the following URL: http://localhost:9200. You can use tools like curl or Postman to send queries to Elasticsearch or inspect the stored data.

Disclaimer

This configuration is intended for demonstration and testing purposes only. It may not be suitable for production environments and should be used at your own risk.

kbe-pipeline's People

Contributors

zlobste avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.