Working with OTel
Basic OTLP Setup
# Start Gonzo as OTLP receiver
gonzo --otlp-enabled
# Custom ports
gonzo --otlp-enabled --otlp-grpc-port=5317 --otlp-http-port=5318
# OTLP with file backup
gonzo --otlp-enabled -f backup.log --followOpenTelemetry Collector Configuration
# otel-collector-config.yaml
exporters:
otlp/gonzo_grpc:
endpoint: localhost:4317
tls:
insecure: true
service:
pipelines:
logs:
receivers: [filelog, otlp]
processors: [batch]
exporters: [otlp/gonzo_grpc]otelcol --config=otel-collector-config.yaml# otel-collector-config.yaml
exporters:
otlphttp/gonzo_http:
endpoint: http://localhost:4318/v1/logs
service:
pipelines:
logs:
receivers: [filelog, otlp]
processors: [batch]
exporters: [otlphttp/gonzo_http]Application Integration
OTLP Advantages
OTLP Issues
What's Next?
Last updated