Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTEL config #1908

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/soak/ccloud.config.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bootstrap.servers=<add your bootstraps here>
sasl.mechanisms=PLAIN
security.protocol=SASL_SSL
sasl.username=<your ccloud access key>
sasl.password=<your ccloud secret>
enable.idempotence=true
debug=eos,generic,broker,security,consumer
linger.ms=2
compression.type=lz4
36 changes: 36 additions & 0 deletions tests/soak/otel-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
receivers:
otlp:
protocols:
grpc:

processors:
batch:
send_batch_max_size: 100
send_batch_size: 10
timeout: 10s

exporters:
datadog:
api:
site: datadoghq.com
key: KEY
logs:
enabled: true
metrics:
histograms:
mode: distributions
send_aggregation_metrics: true

service:
telemetry:
logs:
level: "debug"
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [datadog]
logs:
receivers: [otlp]
processors: [batch]
exporters: [datadog]
10 changes: 9 additions & 1 deletion tests/soak/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ if [[ -z $librdkafka_version ]]; then
exit 1
fi

if [[ -z $STY ]]; then
echo "This script should be run from inside a screen session"
exit 1
fi

set -u
topic="pysoak-$TESTID-$librdkafka_version"
logfile="${topic}.log.bz2"


echo "Starting soak client using topic $topic"
set +x
time opentelemetry-instrument confluent-kafka-python/tests/soak/soakclient.py -i $TESTID -t $topic -r 80 -f confluent-kafka-python/ccloud.config 2>&1
time confluent-kafka-python/tests/soak/soakclient.py -t $topic -r 80 -f confluent-kafka-python/ccloud.config 2>&1 \
| tee /dev/stderr | bzip2 > $logfile
ret=$?
echo "Python client exited with status $ret"
exit $ret
Expand Down