Skip to content

Commit 3ecf56b

Browse files
committed
Migrate to Prometheus remote write
1 parent bd252ad commit 3ecf56b

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

tests/soak/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ OpenTelemetry reporting supported through OTLP.
1212

1313
1. Edit `ccloud.config`
1414

15-
2. Edit `otel-config.yaml`
16-
1715
3. the first time:
1816
```bash
1917
./bootstrap.sh <python-branch/tag> <librdkafka-branch/tag>

tests/soak/bootstrap.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ sudo systemctl restart otelcol-contrib
3434
./build.sh $librdkafka_branch $python_branch
3535

3636
venv=$PWD/venv
37-
source $venv/bin/activate
38-
echo "Verifying python client installation"
39-
python -c "import confluent_kafka; print(confluent_kafka.version(), confluent_kafka.libversion())"
40-
deactivate
41-
4237
echo "All done, activate the virtualenv in $venv before running the client:"
4338
echo "source $venv/bin/activate"
4439

tests/soak/otel-config.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,30 @@ processors:
99
send_batch_size: 10
1010
timeout: 10s
1111

12+
extensions:
13+
sigv4auth:
14+
region: us-west-2
15+
service: aps
16+
assume_role:
17+
arn: arn:aws:iam::975050289299:role/librdkafka-python-soak-tests-amp-writer-tmp
18+
1219
exporters:
13-
datadog:
14-
api:
15-
site: datadoghq.com
16-
key: KEY
17-
logs:
18-
enabled: true
19-
metrics:
20-
histograms:
21-
mode: distributions
22-
send_aggregation_metrics: true
20+
prometheusremotewrite:
21+
endpoint: https://aps-workspaces.us-west-2.amazonaws.com/workspaces/ws-8cbea498-fb8e-49d8-8f6b-74b3687e78e3/api/v1/remote_write
22+
auth:
23+
authenticator: sigv4auth
2324

2425
service:
26+
extensions: [sigv4auth]
2527
telemetry:
2628
logs:
2729
level: "debug"
2830
pipelines:
2931
metrics:
3032
receivers: [otlp]
3133
processors: [batch]
32-
exporters: [datadog]
34+
exporters: [prometheusremotewrite]
3335
logs:
3436
receivers: [otlp]
3537
processors: [batch]
36-
exporters: [datadog]
38+
exporters: [prometheusremotewrite]

0 commit comments

Comments
 (0)