Skip to content

Instantly share code, notes, and snippets.

@jpkrohling
Created February 29, 2024 14:28
Show Gist options
  • Save jpkrohling/0fb51c60c912f01411dfa3c8ccb69fe9 to your computer and use it in GitHub Desktop.
Save jpkrohling/0fb51c60c912f01411dfa3c8ccb69fe9 to your computer and use it in GitHub Desktop.
resilient log pipeline
receivers:
otlp:
protocols:
grpc:
processors:
batch:
send_batch_size: 20_000
exporters:
otlp:
endpoint: http://localhost:5317
sending_queue:
storage: file_storage
queue_size: 600_000 # 1000 logs/sec, 60_000 for 10m
retry_on_failure:
max_elapsed_time: 10m
tls:
insecure: true
extensions:
file_storage:
directory: /tmp/otc
service:
extensions: [file_storage]
pipelines:
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment