forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMLII-2184] http1 and http2 regression cases (DataDog#31539)
- Loading branch information
1 parent
2491564
commit 88a8e04
Showing
8 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.../cases/file_to_blackhole_0ms_latency_http1/datadog-agent/conf.d/disk-listener.d/conf.yaml
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,5 @@ | ||
logs: | ||
- type: file | ||
path: "/smp-shared/*.log" | ||
service: "my-service" | ||
source: "my-client-app" |
21 changes: 21 additions & 0 deletions
21
test/regression/cases/file_to_blackhole_0ms_latency_http1/datadog-agent/datadog.yaml
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,21 @@ | ||
auth_token_file_path: /tmp/agent-auth-token | ||
|
||
# Disable cloud detection. This stops the Agent from poking around the | ||
# execution environment & network. This is particularly important if the target | ||
# has network access. | ||
cloud_provider_metadata: [] | ||
|
||
dd_url: http://127.0.0.1:9091 | ||
|
||
logs_enabled: true | ||
logs_config: | ||
logs_dd_url: 127.0.0.1:9092 | ||
http_protocol: http1 | ||
file_scan_period: 1 | ||
logs_no_ssl: true | ||
force_use_http: true | ||
|
||
process_config.process_dd_url: http://localhost:9093 | ||
|
||
telemetry.enabled: true | ||
telemetry.checks: '*' |
39 changes: 39 additions & 0 deletions
39
test/regression/cases/file_to_blackhole_0ms_latency_http1/experiment.yaml
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,39 @@ | ||
optimization_goal: egress_throughput | ||
erratic: false | ||
|
||
target: | ||
name: datadog-agent | ||
command: /bin/entrypoint.sh | ||
cpu_allotment: 8 | ||
memory_allotment: 1.5GiB | ||
|
||
environment: | ||
DD_API_KEY: 00000001 | ||
DD_HOSTNAME: smp-regression | ||
|
||
profiling_environment: | ||
DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000 | ||
DD_INTERNAL_PROFILING_CPU_DURATION: 1m | ||
DD_INTERNAL_PROFILING_DELTA_PROFILES: true | ||
DD_INTERNAL_PROFILING_ENABLED: true | ||
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true | ||
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10 | ||
DD_INTERNAL_PROFILING_PERIOD: 1m | ||
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: true | ||
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m | ||
DD_PROFILING_WAIT_PROFILE: true | ||
|
||
checks: | ||
- name: memory_usage | ||
description: "Memory usage" | ||
bounds: | ||
series: total_rss_bytes | ||
# The machine has 12GiB free. | ||
upper_bound: 1.2GiB | ||
|
||
- name: lost_bytes | ||
description: "Available bytes not polled by log Agent" | ||
bounds: | ||
series: lost_bytes | ||
upper_bound: 0KiB |
27 changes: 27 additions & 0 deletions
27
test/regression/cases/file_to_blackhole_0ms_latency_http1/lading/lading.yaml
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,27 @@ | ||
generator: | ||
- file_gen: | ||
logrotate_fs: | ||
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] | ||
load_profile: | ||
constant: 10MB | ||
concurrent_logs: 1 | ||
maximum_bytes_per_log: 500MB | ||
total_rotations: 5 | ||
max_depth: 0 | ||
variant: "ascii" | ||
maximum_prebuild_cache_size_bytes: 300MB | ||
mount_point: /smp-shared | ||
|
||
blackhole: | ||
- http: | ||
binding_addr: "127.0.0.1:9091" | ||
- http: | ||
binding_addr: "127.0.0.1:9092" | ||
response_delay_millis: 0 | ||
- http: | ||
binding_addr: "127.0.0.1:9093" | ||
|
||
target_metrics: | ||
- prometheus: | ||
uri: "http://127.0.0.1:5000/telemetry" |
5 changes: 5 additions & 0 deletions
5
.../cases/file_to_blackhole_0ms_latency_http2/datadog-agent/conf.d/disk-listener.d/conf.yaml
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,5 @@ | ||
logs: | ||
- type: file | ||
path: "/smp-shared/*.log" | ||
service: "my-service" | ||
source: "my-client-app" |
21 changes: 21 additions & 0 deletions
21
test/regression/cases/file_to_blackhole_0ms_latency_http2/datadog-agent/datadog.yaml
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,21 @@ | ||
auth_token_file_path: /tmp/agent-auth-token | ||
|
||
# Disable cloud detection. This stops the Agent from poking around the | ||
# execution environment & network. This is particularly important if the target | ||
# has network access. | ||
cloud_provider_metadata: [] | ||
|
||
dd_url: http://127.0.0.1:9091 | ||
|
||
logs_enabled: true | ||
logs_config: | ||
logs_dd_url: 127.0.0.1:9092 | ||
http_protocol: auto | ||
file_scan_period: 1 | ||
logs_no_ssl: true | ||
force_use_http: true | ||
|
||
process_config.process_dd_url: http://localhost:9093 | ||
|
||
telemetry.enabled: true | ||
telemetry.checks: '*' |
39 changes: 39 additions & 0 deletions
39
test/regression/cases/file_to_blackhole_0ms_latency_http2/experiment.yaml
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,39 @@ | ||
optimization_goal: egress_throughput | ||
erratic: false | ||
|
||
target: | ||
name: datadog-agent | ||
command: /bin/entrypoint.sh | ||
cpu_allotment: 8 | ||
memory_allotment: 1.5GiB | ||
|
||
environment: | ||
DD_API_KEY: 00000001 | ||
DD_HOSTNAME: smp-regression | ||
|
||
profiling_environment: | ||
DD_INTERNAL_PROFILING_BLOCK_PROFILE_RATE: 10000 | ||
DD_INTERNAL_PROFILING_CPU_DURATION: 1m | ||
DD_INTERNAL_PROFILING_DELTA_PROFILES: true | ||
DD_INTERNAL_PROFILING_ENABLED: true | ||
DD_INTERNAL_PROFILING_ENABLE_GOROUTINE_STACKTRACES: true | ||
DD_INTERNAL_PROFILING_MUTEX_PROFILE_FRACTION: 10 | ||
DD_INTERNAL_PROFILING_PERIOD: 1m | ||
DD_INTERNAL_PROFILING_UNIX_SOCKET: /var/run/datadog/apm.socket | ||
DD_PROFILING_EXECUTION_TRACE_ENABLED: true | ||
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m | ||
DD_PROFILING_WAIT_PROFILE: true | ||
|
||
checks: | ||
- name: memory_usage | ||
description: "Memory usage" | ||
bounds: | ||
series: total_rss_bytes | ||
# The machine has 12GiB free. | ||
upper_bound: 1.2GiB | ||
|
||
- name: lost_bytes | ||
description: "Available bytes not polled by log Agent" | ||
bounds: | ||
series: lost_bytes | ||
upper_bound: 0KiB |
27 changes: 27 additions & 0 deletions
27
test/regression/cases/file_to_blackhole_0ms_latency_http2/lading/lading.yaml
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,27 @@ | ||
generator: | ||
- file_gen: | ||
logrotate_fs: | ||
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] | ||
load_profile: | ||
constant: 10MB | ||
concurrent_logs: 1 | ||
maximum_bytes_per_log: 500MB | ||
total_rotations: 5 | ||
max_depth: 0 | ||
variant: "ascii" | ||
maximum_prebuild_cache_size_bytes: 300MB | ||
mount_point: /smp-shared | ||
|
||
blackhole: | ||
- http: | ||
binding_addr: "127.0.0.1:9091" | ||
- http: | ||
binding_addr: "127.0.0.1:9092" | ||
response_delay_millis: 0 | ||
- http: | ||
binding_addr: "127.0.0.1:9093" | ||
|
||
target_metrics: | ||
- prometheus: | ||
uri: "http://127.0.0.1:5000/telemetry" |