Skip to content
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@
/test/benchmarks/apm_scripts/ @DataDog/agent-apm
/test/regression/ @DataDog/single-machine-performance
/test/regression/ebpf @DataDog/single-machine-performance @DataDog/ebpf-platform
/test/regression/logs/ @DataDog/agent-log-pipelines
/test/regression/quality_gates/cases/quality_gate_security_* @DataDog/single-machine-performance @DataDog/agent-security
/test/regression/quality_gates/cases/quality_gate_private_action_runner* @DataDog/single-machine-performance @DataDog/action-platform
/test/regression/selection.yaml @DataDog/single-machine-performance
Expand Down
9 changes: 9 additions & 0 deletions test/regression/logs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
description: Log-pipeline regression experiments.
---

# Logs

Organizational grouping for log-pipeline regression experiments. Selectable
suites live in the sub-folders (e.g. `general`, `syslog`); this directory itself
holds no experiments.
9 changes: 9 additions & 0 deletions test/regression/logs/general/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
description: General log-pipeline regression suite.
---

# Logs — general

Ownership-driven suite: runs automatically when the owning team
(`agent-log-pipelines`, per `.github/CODEOWNERS`) changes a file on a PR. Placed
in the `codeowners` bucket of `selection.yaml`.
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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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
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: '*'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
optimization_goal: egress_throughput
erratic: false

target:
name: datadog-agent
cpu_allotment: 4
memory_allotment: 2GiB

environment:
DD_API_KEY: a0000001
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: /smp-host/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true
DD_APM_INTERNAL_PROFILING_ENABLED: true

checks:
- name: memory_usage
description: "Memory usage"
bounds:
series: total_pss_bytes
# The machine has 12GiB free.
upper_bound: 1.2GiB

- name: missed_bytes
description: "Available bytes not polled by log Agent"
bounds:
series: missed_bytes
upper_bound: 0KiB
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: 10 MiB
concurrent_logs: 1
maximum_bytes_per_log: 500 MiB
total_rotations: 5
max_depth: 0
variant: "apache_common"
maximum_prebuild_cache_size_bytes: 300 MiB
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: # core agent telemetry
uri: "http://127.0.0.1:5000/telemetry"
tags:
sub_agent: "core"
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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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
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: '*'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
optimization_goal: egress_throughput
erratic: false

target:
name: datadog-agent
cpu_allotment: 4
memory_allotment: 2GiB

environment:
DD_API_KEY: a0000001
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: /smp-host/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true
DD_APM_INTERNAL_PROFILING_ENABLED: true

checks:
- name: memory_usage
description: "Memory usage"
bounds:
series: total_pss_bytes
# The machine has 12GiB free.
upper_bound: 1.2GiB

- name: missed_bytes
description: "Allowable bytes not polled by log Agent"
bounds:
series: missed_bytes
upper_bound: 0KiB
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: 3 MiB
concurrent_logs: 1
maximum_bytes_per_log: 200 MiB
total_rotations: 5
max_depth: 0
variant: "apache_common"
maximum_prebuild_cache_size_bytes: 300 MiB
mount_point: /smp-shared

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"
response_delay_millis: 1000
- http:
binding_addr: "127.0.0.1:9093"

target_metrics:
- prometheus: # core agent telemetry
uri: "http://127.0.0.1:5000/telemetry"
tags:
sub_agent: "core"
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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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
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: '*'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
optimization_goal: egress_throughput
erratic: false

target:
name: datadog-agent
cpu_allotment: 4
memory_allotment: 2GiB

environment:
DD_API_KEY: a0000001
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: /smp-host/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true
DD_APM_INTERNAL_PROFILING_ENABLED: true

checks:
- name: memory_usage
description: "Memory usage"
bounds:
series: total_pss_bytes
# The machine has 12GiB free.
upper_bound: 1.2GiB

- name: missed_bytes
description: "Allowable bytes not polled by log Agent"
bounds:
series: missed_bytes
upper_bound: 0KiB
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: 5 MiB
concurrent_logs: 1
maximum_bytes_per_log: 500 MiB
total_rotations: 5
max_depth: 0
variant: "apache_common"
maximum_prebuild_cache_size_bytes: 300 MiB
mount_point: /smp-shared

blackhole:
- http:
binding_addr: "127.0.0.1:9091"
- http:
binding_addr: "127.0.0.1:9092"
response_delay_millis: 100
- http:
binding_addr: "127.0.0.1:9093"

target_metrics:
- prometheus: # core agent telemetry
uri: "http://127.0.0.1:5000/telemetry"
tags:
sub_agent: "core"
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"
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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
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: '*'
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
optimization_goal: egress_throughput
erratic: false

target:
name: datadog-agent
cpu_allotment: 4
memory_allotment: 2GiB

environment:
DD_API_KEY: a0000001
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: /smp-host/apm.socket
DD_PROFILING_EXECUTION_TRACE_ENABLED: true
DD_PROFILING_EXECUTION_TRACE_PERIOD: 1m
DD_PROFILING_WAIT_PROFILE: true
DD_APM_INTERNAL_PROFILING_ENABLED: true

checks:
- name: memory_usage
description: "Memory usage"
bounds:
series: total_pss_bytes
# The machine has 12GiB free.
upper_bound: 1.2GiB

- name: missed_bytes
description: "Allowable bytes not polled by log Agent"
bounds:
series: missed_bytes
upper_bound: 0KiB
Loading
Loading