Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save boredstiff/7c5fa7afce5f226668165b0934b2b0e6 to your computer and use it in GitHub Desktop.

Select an option

Save boredstiff/7c5fa7afce5f226668165b0934b2b0e6 to your computer and use it in GitHub Desktop.
otel-collector-config.yaml
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
processors:
batch:
timeout: 1s
memory_limiter:
check_interval: 1s
limit_mib: 1000
resource:
attributes:
- key: service.environment
value: ${SERVICE_ENVIRONMENT}
action: upsert
exporters:
elasticsearch/logs:
endpoints: ["http://elasticsearch:9200"]
logstash_format:
enabled: true
service:
pipelines:
logs:
receivers: [otlp]
processors: [batch, memory_limiter, resource]
exporters: [elasticsearch/logs]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment