Skip to content

Commit

Permalink
ensure all example configs use ${env:...} replacement syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony J Mirabella <[email protected]>
  • Loading branch information
Aneurysm9 committed Oct 8, 2024
1 parent 8cdca28 commit 476c952
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions config/ecs/ecs-amp-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
health_check:
sigv4auth:
region: ${AWS_REGION}
region: ${env:AWS_REGION}

receivers:
awsecscontainermetrics:
Expand All @@ -13,7 +13,7 @@ receivers:
scrape_configs:
- job_name: "otel-collector"
static_configs:
- targets: [$AWS_PROMETHEUS_SCRAPING_ENDPOINT]
- targets: [${env:AWS_PROMETHEUS_SCRAPING_ENDPOINT}]

processors:
batch/metrics:
Expand Down Expand Up @@ -41,7 +41,7 @@ processors:

exporters:
prometheusremotewrite:
endpoint: ${AWS_PROMETHEUS_ENDPOINT}
endpoint: ${env:AWS_PROMETHEUS_ENDPOINT}
auth:
authenticator: sigv4auth
resource_to_telemetry_conversion:
Expand Down
6 changes: 3 additions & 3 deletions config/ecs/ecs-amp-xray-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
health_check:
sigv4auth:
region: ${AWS_REGION}
region: ${env:AWS_REGION}

receivers:
otlp:
Expand All @@ -19,7 +19,7 @@ receivers:
scrape_configs:
- job_name: "otel-collector"
static_configs:
- targets: [$AWS_PROMETHEUS_SCRAPING_ENDPOINT]
- targets: [${env:AWS_PROMETHEUS_SCRAPING_ENDPOINT}]

processors:
batch/traces:
Expand Down Expand Up @@ -51,7 +51,7 @@ processors:
exporters:
awsxray:
prometheusremotewrite:
endpoint: ${AWS_PROMETHEUS_ENDPOINT}
endpoint: ${env:AWS_PROMETHEUS_ENDPOINT}
auth:
authenticator: sigv4auth
resource_to_telemetry_conversion:
Expand Down
4 changes: 2 additions & 2 deletions config/ecs/ecs-amp-xray.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
health_check:
sigv4auth:
region: ${AWS_REGION}
region: ${env:AWS_REGION}

receivers:
otlp:
Expand Down Expand Up @@ -42,7 +42,7 @@ processors:
exporters:
awsxray:
prometheusremotewrite:
endpoint: ${AWS_PROMETHEUS_ENDPOINT}
endpoint: ${env:AWS_PROMETHEUS_ENDPOINT}
auth:
authenticator: sigv4auth
resource_to_telemetry_conversion:
Expand Down
4 changes: 2 additions & 2 deletions config/ecs/ecs-amp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
health_check:
sigv4auth:
region: ${AWS_REGION}
region: ${env:AWS_REGION}

receivers:
otlp:
Expand Down Expand Up @@ -38,7 +38,7 @@ processors:

exporters:
prometheusremotewrite:
endpoint: ${AWS_PROMETHEUS_ENDPOINT}
endpoint: ${env:AWS_PROMETHEUS_ENDPOINT}
auth:
authenticator: sigv4auth
resource_to_telemetry_conversion:
Expand Down
2 changes: 1 addition & 1 deletion examples/ecs/aws-prometheus/ecs-ec2-adot-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ receivers:
scrape_configs:
- job_name: "test-prometheus-sample-app"
static_configs:
- targets: [ $PROMETHEUS_SAMPLE_APP ]
- targets: [ ${env:PROMETHEUS_SAMPLE_APP} ]
awsecscontainermetrics:
collection_interval: 20s

Expand Down

0 comments on commit 476c952

Please sign in to comment.