-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Change processor config tests to unmarshal config for that co…
…mponent. - resourcedetectionprocessor - resourceprocessor - routingprocessor - schemaprocessor - spanprocessor - tailsamplingprocessor - transformprocessor
- Loading branch information
Showing
30 changed files
with
720 additions
and
966 deletions.
There are no files selected for viewing
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
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
91 changes: 41 additions & 50 deletions
91
processor/resourcedetectionprocessor/testdata/config.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 |
---|---|---|
@@ -1,53 +1,44 @@ | ||
receivers: | ||
nop: | ||
resourcedetection: | ||
resourcedetection/gce: | ||
detectors: [env, gce] | ||
timeout: 2s | ||
override: false | ||
|
||
processors: | ||
resourcedetection: | ||
resourcedetection/gce: | ||
detectors: [env, gce] | ||
timeout: 2s | ||
override: false | ||
resourcedetection/ec2: | ||
detectors: [env, ec2] | ||
timeout: 2s | ||
override: false | ||
ec2: | ||
tags: | ||
- ^tag1$ | ||
- ^tag2$ | ||
resourcedetection/ecs: | ||
detectors: [env, ecs] | ||
timeout: 2s | ||
override: false | ||
resourcedetection/system: | ||
detectors: [env, system] | ||
timeout: 2s | ||
override: false | ||
system: | ||
hostname_sources: [os] | ||
attributes: ["a", "b"] | ||
resourcedetection/docker: | ||
detectors: [env, docker] | ||
timeout: 2s | ||
override: false | ||
resourcedetection/azure: | ||
detectors: [env, azure] | ||
timeout: 2s | ||
override: false | ||
resourcedetection/ec2: | ||
detectors: [env, ec2] | ||
timeout: 2s | ||
override: false | ||
ec2: | ||
tags: | ||
- ^tag1$ | ||
- ^tag2$ | ||
|
||
exporters: | ||
nop: | ||
resourcedetection/ecs: | ||
detectors: [env, ecs] | ||
timeout: 2s | ||
override: false | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [nop] | ||
processors: | ||
# Choose one depending on your cloud provider and environment: | ||
# - resourcedetection/system | ||
# - resourcedetection/docker | ||
# - resourcedetection/gce | ||
# - resourcedetection/ec2 | ||
# - resourcedetection/ecs | ||
# - resourcedetection/azure | ||
exporters: [nop] | ||
resourcedetection/system: | ||
detectors: [env, system] | ||
timeout: 2s | ||
override: false | ||
system: | ||
hostname_sources: [os] | ||
attributes: ["a", "b"] | ||
|
||
resourcedetection/docker: | ||
detectors: [env, docker] | ||
timeout: 2s | ||
override: false | ||
|
||
resourcedetection/azure: | ||
detectors: [env, azure] | ||
timeout: 2s | ||
override: false | ||
|
||
resourcedetection/invalid: | ||
detectors: [env, system] | ||
timeout: 2s | ||
override: false | ||
system: | ||
hostname_sources: [invalid_source] |
22 changes: 0 additions & 22 deletions
22
processor/resourcedetectionprocessor/testdata/invalid_config.yaml
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.