-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Kafka exporter and receiver configuration (#5703)
<!-- !! Please DELETE this comment before posting. We appreciate your contribution to the Jaeger project! ππ --> ## Which problem is this PR solving? - Resolves #4868 ## Description of the changes - Add config files for replacement of jaeger-collector and jaeger-ingester. - Add the architecture for the integration tests for kafka. - Add e2e integration tests for Kafka. ## How was this change tested? - Manually ran the collector, ingester configs to check if the data is being pushed and pulled the right way and verified the architecture. ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: joeyyy09 <[email protected]> Signed-off-by: Harshith Mente <[email protected]> Signed-off-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]> Co-authored-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
d8b2110
commit e437971
Showing
12 changed files
with
179 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp, jaeger] | ||
processors: [batch] | ||
exporters: [kafka] | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
jaeger: | ||
protocols: | ||
grpc: | ||
thrift_binary: | ||
thrift_compact: | ||
thrift_http: | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
kafka: | ||
brokers: | ||
- localhost:9092 | ||
topic: "jaeger-spans" | ||
encoding: otlp_proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
service: | ||
extensions: [jaeger_storage, jaeger_query] | ||
pipelines: | ||
traces: | ||
receivers: [kafka] | ||
processors: [batch] | ||
exporters: [jaeger_storage_exporter] | ||
telemetry: | ||
metrics: | ||
address: 0.0.0.0:8889 | ||
logs: | ||
level: debug | ||
|
||
extensions: | ||
jaeger_query: | ||
trace_storage: some_storage | ||
|
||
jaeger_storage: | ||
backends: | ||
some_storage: | ||
memory: | ||
max_traces: 100000 | ||
|
||
receivers: | ||
kafka: | ||
brokers: | ||
- localhost:9092 | ||
topic: "jaeger-spans" | ||
encoding: otlp_proto | ||
initial_offset: earliest | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
jaeger_storage_exporter: | ||
trace_storage: some_storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2024 The Jaeger Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package integration | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/jaegertracing/jaeger/plugin/storage/integration" | ||
) | ||
|
||
func TestKafkaStorage(t *testing.T) { | ||
integration.SkipUnlessEnv(t, "kafka") | ||
|
||
collectorConfig := "../../collector-with-kafka.yaml" | ||
ingesterConfig := "../../ingester-remote-storage.yaml" | ||
|
||
collector := &E2EStorageIntegration{ | ||
SkipStorageCleaner: true, | ||
ConfigFile: collectorConfig, | ||
} | ||
|
||
// Initialize and start the collector | ||
collector.e2eInitialize(t, "kafka") | ||
|
||
ingester := &E2EStorageIntegration{ | ||
ConfigFile: ingesterConfig, | ||
StorageIntegration: integration.StorageIntegration{ | ||
CleanUp: purge, | ||
GetDependenciesReturnsSource: true, | ||
SkipArchiveTest: true, | ||
}, | ||
} | ||
|
||
// Initialize and start the ingester | ||
ingester.e2eInitialize(t, "kafka") | ||
|
||
// Run the span store tests | ||
ingester.RunSpanStoreTests(t) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters