Skip to content

Commit 755bee9

Browse files
author
Mark Stumpf
authored
Fix evaluating env variables in ecs ec2 config (open-telemetry#930)
1 parent 2e213e9 commit 755bee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/otelcol/config/collector/ecs_ec2_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ receivers:
7878
type: ecs-metadata
7979
metadataEndpoint: "${ECS_TASK_METADATA_ENDPOINT}"
8080
statsEndpoint: "${ECS_TASK_STATS_ENDPOINT}"
81-
excludedImages: ${env:ECS_METADATA_EXCLUDED_IMAGES}
81+
excludedImages: $${env:ECS_METADATA_EXCLUDED_IMAGES}
8282

8383
processors:
8484
batch:
@@ -105,7 +105,7 @@ processors:
105105
metrics:
106106
exclude:
107107
match_type: regexp
108-
metric_names: ${env:METRICS_TO_EXCLUDE}
108+
metric_names: $${env:METRICS_TO_EXCLUDE}
109109
# # Optional: The following processor can be used to add a default "deployment.environment" attribute to the logs and
110110
# # traces when it's not populated by instrumentation libraries.
111111
# # If enabled, make sure to enable this processor in the pipeline below.

0 commit comments

Comments
 (0)