-
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
Closed
rayz
wants to merge
12
commits into
olivielpeau/tag-aggregation-pre-aggr
from
raymond/tag-agg-correctness
Closed
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e815a4a
tag aggregation correctness test
rayz 421be51
fmt
rayz aacf504
add correctness test to ci
rayz 35a5128
Add correctness tests for the other implementations
rayz 0e7e9b5
Use registry
rayz a217fa3
Fix check-deny
rayz 8e53215
Send more metrics
rayz b9edd70
Add more cases
rayz 78d989d
Remove unnecessary case
rayz c5a897b
Use agent-dev images
rayz b5b157b
Update pipelines
rayz 2dcdab8
Trigger ci
rayz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,22 @@ | ||
| 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: saluki-images/datadog-agent:testing-release | ||
| files: | ||
| - datadog.yaml:/etc/datadog-agent/datadog.yaml | ||
| additional_env_vars: | ||
| - DD_API_KEY=correctness-test | ||
| - DD_DATA_PLANE_ENABLED=true | ||
| - DD_DATA_PLANE_DOGSTATSD_ENABLED=true | ||
| - DD_AGGREGATE_CONTEXT_LIMIT=500000 |
This file contains hidden or 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,38 @@ | ||
| # Using a fixed hostname is both required to avoid errors, and also ensures | ||
| # consistent tags between the baseline Agent and the ADP comparison target. | ||
| 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 | ||
|
|
||
| # Keep origin detection enabled to stay closer to real DogStatsD behavior. | ||
| # | ||
| # Note: the current corpus still primarily exercises instrumented-tag filtering; | ||
| # enabling origin detection did not change the final comparable metric set in the | ||
| # latest parity run. | ||
| dogstatsd_origin_detection: true | ||
|
|
||
| # Gauges can be processed out-of-order when multiple workers are used, while ADP | ||
| # does not use multiple workers. Keep worker count at 1 to remove that | ||
| # difference from this parity test. | ||
| dogstatsd_workers_count: 1 | ||
|
|
||
| metric_tag_filterlist: | ||
| - metric_name: tagfilter.exclude | ||
| action: exclude | ||
| tags: | ||
| - pod | ||
| - metric_name: tagfilter.include | ||
| action: include | ||
| tags: | ||
| - env |
This file contains hidden or 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,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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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?