Skip to content

Mongey/kafka-connect-slack

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

kafka-connect-slack

A kafka-connect sink connector, for formatting, and sending messages to Slack

CircleCI

πŸ”Œ Installation

Download the latest jar and place it in your kafka-connect plugins folder.

πŸ› οΈ Configuration

resource "kafka-connect_connector" "slack_sink" {
  name = "slack_sink"

  config = {
    "name"             = "slack_sink"
    "connector.class"  = "net.mongey.kafka.connect.SlackSinkConnector"
    "topics"           = "paid-orders"
    "slack.token"      = "${var.slack_token}"
    "slack.channel"    = "shipping-requests"
    "message.template" = "${customer.firstname} created a new order"
  }
}
  • slack.token is the slack token for the connector to use.
  • slack.channel defines what channel to send the message into. (Optional)
  • slack.username defines the user to send the message to. (Optional)
  • message.template defines the template to use for the message.

πŸ“ message.template

Interpolate fields from the message using ${field_name}. Nested fields are accessible using a . e.g. ${customer.address.city}

About

Kafka Connect Sink for posting to Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published