Skip to content

Commit e782376

Browse files
Update opentelemetry collector config to read appinsights string from… (#7825)
* Update opentelemetry collector config to read appinsights string from environment and add more logging. * Also remove that line that cats in the appinsights connection string, since we can just use normal environment injection.
1 parent be7ca14 commit e782376

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tools/stress-cluster/services/otelcollector/otel-collector-config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ service:
1919
logs:
2020
receivers: [otlp]
2121
processors: [batch]
22-
exporters: [azuremonitor]
22+
exporters: [logging, azuremonitor]
2323

2424
exporters:
2525
logging:
26-
verbosity: normal
26+
verbosity: detailed
2727
azuremonitor:
28-
# connection_string: "%APPLICATIONINSIGHTS_CONNECTION_STRING%"
28+
connection_string: "${env:APPLICATIONINSIGHTS_CONNECTION_STRING}"

tools/stress-cluster/services/otelcollector/startup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
set -ex
44

55
source $ENV_FILE
6-
echo " connection_string: \"$APPLICATIONINSIGHTS_CONNECTION_STRING\"" >> /otel-collector-config.yml
76
/otelcol-contrib --config otel-collector-config.yml $@

0 commit comments

Comments
 (0)