Skip to content

Commit f50f53d

Browse files
committed
test(otlp): added correctness test for new config option
1 parent 72da59c commit f50f53d

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
type: correctness
2+
runtime: docker
3+
analysis_mode: metrics
4+
baseline:
5+
image: saluki-images/datadog-agent:testing-release
6+
files:
7+
- datadog.yaml:/etc/datadog-agent/datadog.yaml
8+
additional_env_vars:
9+
- DD_API_KEY=correctness-test
10+
comparison:
11+
image: saluki-images/datadog-agent:testing-release
12+
files:
13+
- datadog.yaml:/etc/datadog-agent/datadog.yaml
14+
additional_env_vars:
15+
- DD_API_KEY=correctness-test
16+
- DD_DATA_PLANE_ENABLED=true
17+
- DD_DATA_PLANE_STANDALONE_MODE=false
18+
- DD_DATA_PLANE_OTLP_ENABLED=true
19+
- ADP_DD_DATA_PLANE_OTLP_RECEIVER_PROTOCOLS_GRPC_ENDPOINT=0.0.0.0:54317
20+
- ADP_DD_DATA_PLANE_OTLP_RECEIVER_PROTOCOLS_HTTP_ENDPOINT=0.0.0.0:54318
21+
- DD_AGGREGATE_CONTEXT_LIMIT=500000
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# OTLP correctness test configuration for summary quantile reporting.
2+
hostname: "correctness-testing"
3+
api_key: dummy-api-key-correctness-testing
4+
health_port: 5555
5+
dd_url: "http://datadog-intake:2049"
6+
7+
otlp_config:
8+
metrics:
9+
summaries:
10+
mode: noquantiles
11+
receiver:
12+
protocols:
13+
grpc:
14+
endpoint: "0.0.0.0:54317"
15+
max_recv_msg_size_mib: 4
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
seed: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131]
2+
target: "grpc://$GROUP:54317/opentelemetry.proto.collector.metrics.v1.MetricsService/Export"
3+
aggregation_bucket_width_secs: 10
4+
volume: 1
5+
corpus:
6+
size: 1
7+
payload:
8+
# ExportMetricsServiceRequest with one SummaryDataPoint and two quantiles.
9+
static_base64: "CmMSYRJfChZvdGxwLnN1bW1hcnkucXVhbnRpbGVzWkUKQxkAACo2/pyXFyEKAAAAAAAAACkAAAAAAABZQDISCQAAAAAAAOA/EQAAAAAAAClAMhIJrkfhehSu7z8RAAAAAAAAOUA="

0 commit comments

Comments
 (0)