Skip to content

Commit

Permalink
Fix environment variable substitution syntax in configuration examples (
Browse files Browse the repository at this point in the history
#2866)

* make link to logging exporter permalink to last used release tag (#2862)

Signed-off-by: Anthony J Mirabella <[email protected]>

* ECS configs changes: from BASH-style environment variables to ${}

* ensure all example configs use ${env:...} replacement syntax

Signed-off-by: Anthony J Mirabella <[email protected]>

---------

Signed-off-by: Anthony J Mirabella <[email protected]>
Co-authored-by: 이희성 <[email protected]>
  • Loading branch information
Aneurysm9 and 이희성 authored Oct 8, 2024
1 parent a08ea87 commit 17b1965
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This table represents the supported components of the ADOT Collector. The highli
| [prometheusreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/prometheusreceiver#prometheus-receiver) | [attributesprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/attributesprocessor#attributes-processor) | [`awsxrayexporter`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awsxrayexporter) | [healthcheckextension](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/healthcheckextension#health-check) |
| [otlpreceiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver#otlp-receiver) | [resourceprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor#resource-processor) | [`awsemfexporter`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/awsemfexporter) | [pprofextension](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/pprofextension#performance-profiler) |
| [`awsecscontainermetricsreceiver`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsecscontainermetricsreceiver) | [batchprocessor](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor#batch-processor) | [prometheusremotewriteexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/prometheusremotewriteexporter#prometheus-remote-write-exporter) | [zpagesextension](https://github.com/open-telemetry/opentelemetry-collector/tree/main/extension/zpagesextension#zpages) |
| [`awsxrayreceiver`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsxrayreceiver) | [memorylimiterprocessor](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor#memory-limiter-processor) | [loggingexporter](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/loggingexporter#logging-exporter) | [`ecsobserver`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/observer/ecsobserver) |
| [`awsxrayreceiver`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsxrayreceiver) | [memorylimiterprocessor](https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor#memory-limiter-processor) | [loggingexporter](https://github.com/open-telemetry/opentelemetry-collector/tree/v0.109.0/exporter/loggingexporter#logging-exporter) | [`ecsobserver`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/observer/ecsobserver) |
| [statsdreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/statsdreceiver#statsd-receiver) | [probabilisticsamplerprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/probabilisticsamplerprocessor#probabilistic-sampling-processor) | [otlpexporter](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlpexporter) | [`awsproxy`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/awsproxy) |
| [zipkinreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/zipkinreceiver#zipkin-receiver) | [metricstransformprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor#metrics-transform-processor) | [fileexporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/fileexporter#file-exporter) | [ballastextension](https://github.com/open-telemetry/opentelemetry-collector/tree/v0.108.1/extension/ballastextension#memory-ballast) |
| [jaegerreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/jaegerreceiver#jaeger-receiver) | [spanprocessor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/spanprocessor#span-processor) | [otlphttpexporter](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/otlphttpexporter#otlphttp-exporter) | [`sigv4authextension`](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/sigv4authextension) |
Expand Down
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 17b1965

Please sign in to comment.