Created
April 2, 2025 12:27
-
-
Save JonCanning/8b3870ede48ba390958013effcfbf544 to your computer and use it in GitHub Desktop.
open telemetry collector and file exporter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
opentelemetry-collector-contrib: | |
image: otel/opentelemetry-collector-contrib:latest | |
ports: | |
- '4317:4317' | |
volumes: | |
- ./file-exporter:/file-exporter:rw | |
- ./otel-config.yml:/otel-config.yml | |
command: ['--config=/otel-config.yml'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
receivers: | |
otlp: | |
protocols: | |
grpc: | |
endpoint: 0.0.0.0:4317 | |
exporters: | |
file: | |
path: /file-exporter/otel.json | |
service: | |
pipelines: | |
logs: | |
receivers: [otlp] | |
exporters: [file] | |
traces: | |
receivers: [otlp] | |
exporters: [file] | |
metrics: | |
receivers: [otlp] | |
exporters: [file] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment