项目作者: willianvalerio

项目描述 :
How to track Kafka components with Splunk Observability Cloud and Opentelemetry
高级语言: Java
项目地址: git://github.com/willianvalerio/splunk-otel-kafka.git
创建时间: 2021-04-16T17:49:57Z
项目社区:https://github.com/willianvalerio/splunk-otel-kafka

开源协议:

下载


splunk-otel-kafka

How to track kafka components with Splunk Observability Cloud and Opentelemetry

Prerequisites

  • docker
  • docker-compose

Up and Running

Set these following variables

  1. export SPLUNK_ACCESS_TOKEN=YOUR_SPLUNK_ACCESS_TOKEN
  1. export SPLUNK_REALM=YOUR_SPLUNK_REALM

Up and build containers

  1. docker-compose up -d --build --remove-orphans

Outcomes

After some seconds, your Service Map in Splunk Observability Cloud will looks like this:

servicemap

Kafka test/troubleshooting

You can use the kafkacat container to perform tests, create new topics and troubleshooting in an easy way.

Open a terminal and execute the following commands:

  1. docker exec -ti kafka-cat bash
  2. kafkacat -P -b kafka:9092 -t test
  3. message1
  4. message2

In a second terminal execute the following commands:

  1. docker exec -ti kafka-cat bash
  2. kafkacat -b kafka:9092 -t test

At the second terminal you should see the messages being consumed

Clean Up

  1. docker-compose down --remove-orphans