Skip to content

sami12rom/kafka-connect-gitlab

Repository files navigation

Building a Kafka Connector for GitLab using Kotlin

This repository provides a Kafka connector implemented in Kotlin to streamline data integration between GitLab and your Kafka topics. Leverage the power of Kafka Connect for scalable and reliable data pipelines, and harness GitLab's rich source of events and metrics.

Kotlin Apache Kafka Gitlab Docker

Getting Started

This guide helps you quickly set up and use the connector:

  1. Prerequisites:

    • Java 8 or later
    • Apache Kafka installation
    • GitLab instance with API access
  2. Build and Run:

    • Clone this repository: git clone https://github.com/sami12rom/kafka-connect-gitlab.git
    • Build the connector: ./gradlew build
    • Start the connector using a Kafka Connect worker configuration file (see examples/worker.properties).
  3. Configuration:

    • Customize the connector settings (like GitLab API URL, topics, events) in the worker configuration file.

Features

  • Capture GitLab events:
    • Push events
    • Merge request events
    • Issue events
  • Choose data transformation options for structured or raw data.
  • Flexible configuration via the worker properties file.

Usage Examples

  • Send GitLab push events to a Kafka topic for real-time CI/CD pipeline updates.
  • Track GitLab issue activity and analyze trends using Kafka Stream processing.
  • Integrate GitLab data with other systems like data lakes or BI tools.

Contributions

We welcome any contributions to this project, whether it is bug reports, feature requests, code improvements, documentation updates, or feedback

Authors

# Name Contact
1 Sami Alashabi
2 Ramzi Alashabi

License

This project is licensed under the Apache License 2.0.