Skip to content

Commit

Permalink
creating separate yaml file for otel
Browse files Browse the repository at this point in the history
  • Loading branch information
robertandremitchell committed Apr 4, 2024
1 parent 9bb2d26 commit 557b4d7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/aws/implementation/modules/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,6 @@ resource "helm_release" "otel_collector" {

set {
name = "otelCollector.config"
value = data.external.fetch_otel_config.result.stdout
value = file("${path.module}/otel_collector_config.yaml")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# otel_collector_config.yaml
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
exporters:
logging:
loglevel: debug
prometheus:
endpoint: "otel-collector:8889"
processors:
batch:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, prometheus]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging, prometheus]
logs:
receivers: [otlp]
processors: [batch]
exporters: [logging]

0 comments on commit 557b4d7

Please sign in to comment.