-
Notifications
You must be signed in to change notification settings - Fork 11
chore(agent-data-plane): tag_filterlist correctness test
#1251
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
Changes from 6 commits
e815a4a
421be51
aacf504
35a5128
0e7e9b5
a217fa3
8e53215
b9edd70
78d989d
c5a897b
b5b157b
2dcdab8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -521,7 +521,7 @@ test-all: test test-property test-docs test-miri test-loom | |
|
|
||
| .PHONY: test-correctness | ||
| test-correctness: ## Runs the complete correctness suite | ||
| test-correctness: test-correctness-dsd-plain test-correctness-dsd-origin-detection test-correctness-otlp-metrics test-correctness-otlp-traces test-correctness-otlp-traces-ottl-filtering test-correctness-otlp-traces-ottl-transform | ||
| test-correctness: test-correctness-dsd-plain test-correctness-dsd-origin-detection test-correctness-dsd-tag-filterlist test-correctness-dsd-optimized-tag-filterlist test-correctness-dsd-additional-optimized-tag-filterlist test-correctness-dsd-tag-filterlist-context-cache test-correctness-dsd-tag-filterlist-post-aggr test-correctness-otlp-metrics test-correctness-otlp-traces test-correctness-otlp-traces-ottl-filtering test-correctness-otlp-traces-ottl-transform | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we wrap these, e.g. one-per-line?
Comment on lines
523
to
+524
|
||
|
|
||
| .PHONY: test-correctness-dsd-plain | ||
| test-correctness-dsd-plain: build-ground-truth | ||
|
|
@@ -535,6 +535,36 @@ test-correctness-dsd-origin-detection: ## Runs the 'dsd-origin-detection' correc | |
| @echo "[*] Running 'dsd-origin-detection' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-origin-detection/config.yaml | ||
|
|
||
| .PHONY: test-correctness-dsd-tag-filterlist | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we reduce code duplication by having the correctness test "recipe" stated only once then sending the name into it? echo-anything:
@echo $(NAME)
hello:
$(MAKE) echo-anything NAME="Hello, World"
goodbye:
$(MAKE) echo-anything NAME="Goodbye, World"
farewell:
$(MAKE) echo-anything NAME="Farewell, friend"
|
||
| test-correctness-dsd-tag-filterlist: build-ground-truth | ||
| test-correctness-dsd-tag-filterlist: ## Runs the 'dsd-tag-filterlist' correctness test case | ||
| @echo "[*] Running 'dsd-tag-filterlist' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-tag-filterlist/config.yaml | ||
|
|
||
| .PHONY: test-correctness-dsd-optimized-tag-filterlist | ||
| test-correctness-dsd-optimized-tag-filterlist: build-ground-truth | ||
| test-correctness-dsd-optimized-tag-filterlist: ## Runs the 'dsd-optimized-tag-filterlist' correctness test case | ||
| @echo "[*] Running 'dsd-optimized-tag-filterlist' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-optimized-tag-filterlist/config.yaml | ||
|
|
||
| .PHONY: test-correctness-dsd-additional-optimized-tag-filterlist | ||
| test-correctness-dsd-additional-optimized-tag-filterlist: build-ground-truth | ||
| test-correctness-dsd-additional-optimized-tag-filterlist: ## Runs the 'dsd-additional-optimized-tag-filterlist' correctness test case | ||
| @echo "[*] Running 'dsd-additional-optimized-tag-filterlist' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-additional-optimized-tag-filterlist/config.yaml | ||
|
|
||
| .PHONY: test-correctness-dsd-tag-filterlist-context-cache | ||
| test-correctness-dsd-tag-filterlist-context-cache: build-ground-truth | ||
| test-correctness-dsd-tag-filterlist-context-cache: ## Runs the 'dsd-tag-filterlist-context-cache' correctness test case | ||
| @echo "[*] Running 'dsd-tag-filterlist-context-cache' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-tag-filterlist-context-cache/config.yaml | ||
|
|
||
| .PHONY: test-correctness-dsd-tag-filterlist-post-aggr | ||
| test-correctness-dsd-tag-filterlist-post-aggr: build-ground-truth | ||
| test-correctness-dsd-tag-filterlist-post-aggr: ## Runs the 'dsd-tag-filterlist-post-aggr' correctness test case | ||
| @echo "[*] Running 'dsd-tag-filterlist-post-aggr' correctness test case..." | ||
| @target/release/ground-truth $(shell pwd)/test/correctness/dsd-tag-filterlist-post-aggr/config.yaml | ||
|
|
||
| .PHONY: test-correctness-otlp-metrics | ||
| test-correctness-otlp-metrics: build-ground-truth | ||
| test-correctness-otlp-metrics: ## Runs the 'otlp-metrics' correctness test case | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| analysis_mode: metrics | ||
| millstone: | ||
| image: saluki-images/millstone:latest | ||
| config_path: millstone.yaml | ||
| datadog_intake: | ||
| image: saluki-images/datadog-intake:latest | ||
| config_path: ../datadog-intake.yaml | ||
| baseline: | ||
| image: registry.datadoghq.com/agent:7.76.2-jmx | ||
| files: | ||
| - datadog.yaml:/etc/datadog-agent/datadog.yaml | ||
| additional_env_vars: | ||
| - DD_API_KEY=correctness-test | ||
| comparison: | ||
| image: registry.datadoghq.com/agent-dev:62567276-py3-jmx | ||
|
rayz marked this conversation as resolved.
|
||
| files: | ||
| - datadog.yaml:/etc/datadog-agent/datadog.yaml | ||
| additional_env_vars: | ||
| - DD_API_KEY=correctness-test | ||
|
rayz marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Using a fixed hostname ensures consistent tags between the baseline and comparison agents. | ||
| hostname: "correctness-testing" | ||
|
|
||
| # Dummy API key. | ||
| api_key: dummy-api-key-correctness-testing | ||
|
|
||
| # We have to specifically configure the health port to use. | ||
| health_port: 5555 | ||
|
|
||
| # Point ourselves at the datadog-intake service. | ||
| dd_url: "http://datadog-intake:2049" | ||
|
|
||
| # Turn off UDP and listen on a UDS socket instead. | ||
| dogstatsd_port: 0 | ||
| dogstatsd_socket: /airlock/metrics.sock | ||
|
|
||
| dogstatsd_origin_detection: false | ||
|
|
||
| # Keep worker count at 1 to ensure deterministic gauge processing. | ||
| dogstatsd_workers_count: 1 | ||
|
|
||
| metric_tag_filterlist: | ||
| - metric_name: tagfilter.exclude | ||
| action: exclude | ||
| tags: | ||
| - pod | ||
| - metric_name: tagfilter.include | ||
| action: include | ||
| tags: | ||
| - env |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| 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] | ||
| target: "unixgram:///airlock/metrics.sock" | ||
| aggregation_bucket_width_secs: 10 | ||
| volume: 10000 | ||
| corpus: | ||
| size: 10000 | ||
| payload: | ||
| dogstatsd: | ||
| contexts: | ||
| constant: 256 | ||
| metric_names: | ||
| - "tagfilter.exclude" | ||
| - "tagfilter.include" | ||
| - "tagfilter.miss" | ||
| tag_names: | ||
| - "env" | ||
| - "pod" | ||
| tag_values: | ||
| - "prod" | ||
| - "staging" | ||
| - "pod-a" | ||
| - "pod-b" | ||
| - "pod-c" | ||
| name_length: | ||
| inclusive: | ||
| min: 1 | ||
| max: 32 | ||
| tag_length: | ||
| inclusive: | ||
| min: 3 | ||
| max: 16 | ||
| tags_per_msg: | ||
| constant: 2 | ||
| unique_tag_ratio: 1.0 | ||
| value: | ||
| float_probability: 0.5 | ||
| range: | ||
| inclusive: | ||
| min: -9999999 | ||
| max: 9999999 | ||
| multivalue_count: | ||
| inclusive: | ||
| min: 2 | ||
| max: 32 | ||
| multivalue_pack_probability: 0.08 | ||
| kind_weights: | ||
| metric: 100 | ||
| event: 0 | ||
| service_check: 0 | ||
| metric_weights: | ||
| count: 0 | ||
| gauge: 0 | ||
| timer: 0 | ||
| distribution: 1 | ||
| set: 0 | ||
| histogram: 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| analysis_mode: metrics | ||
| millstone: | ||
| image: saluki-images/millstone:latest | ||
| config_path: millstone.yaml | ||
| datadog_intake: | ||
| image: saluki-images/datadog-intake:latest | ||
| config_path: ../datadog-intake.yaml | ||
| baseline: | ||
| image: registry.datadoghq.com/agent:7.76.2-jmx | ||
| files: | ||
| - datadog.yaml:/etc/datadog-agent/datadog.yaml | ||
| additional_env_vars: | ||
| - DD_API_KEY=correctness-test | ||
| comparison: | ||
| image: registry.datadoghq.com/agent-dev:ff848d05-py3-jmx | ||
|
rayz marked this conversation as resolved.
|
||
| files: | ||
| - datadog.yaml:/etc/datadog-agent/datadog.yaml | ||
| additional_env_vars: | ||
| - DD_API_KEY=correctness-test | ||
|
rayz marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Using a fixed hostname ensures consistent tags between the baseline and comparison agents. | ||
| hostname: "correctness-testing" | ||
|
|
||
| # Dummy API key. | ||
| api_key: dummy-api-key-correctness-testing | ||
|
|
||
| # We have to specifically configure the health port to use. | ||
| health_port: 5555 | ||
|
|
||
| # Point ourselves at the datadog-intake service. | ||
| dd_url: "http://datadog-intake:2049" | ||
|
|
||
| # Turn off UDP and listen on a UDS socket instead. | ||
| dogstatsd_port: 0 | ||
| dogstatsd_socket: /airlock/metrics.sock | ||
|
|
||
| dogstatsd_origin_detection: false | ||
|
|
||
| # Keep worker count at 1 to ensure deterministic gauge processing. | ||
| dogstatsd_workers_count: 1 | ||
|
|
||
| metric_tag_filterlist: | ||
| - metric_name: tagfilter.exclude | ||
| action: exclude | ||
| tags: | ||
| - pod | ||
| - metric_name: tagfilter.include | ||
| action: include | ||
| tags: | ||
| - env |
Uh oh!
There was an error while loading. Please reload this page.