Skip to content

Instantly share code, notes, and snippets.

@Condla
Created December 1, 2023 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Condla/c2f08f1e05532378750b67fdd43af63d to your computer and use it in GitHub Desktop.
Save Condla/c2f08f1e05532378750b67fdd43af63d to your computer and use it in GitHub Desktop.
Example configuration of an AWS Lambda ADOT OTel Collector to ingest traces of AWS Lambda functions into Grafana Cloud
#collector.yaml in the root directory
#Set an environment variable 'OPENTELEMETRY_COLLECTOR_CONFIG_FILE' to '/var/task/collector.yaml'
receivers:
otlp:
protocols:
grpc:
endpoint: "localhost:4317"
http:
endpoint: "localhost:4318"
exporters:
logging:
verbosity: detailed
otlphttp:
endpoint: https://otlp-gateway-prod-eu-west-2.grafana.net/otlp
headers:
Authorization: "Basic <base64 encoded key>"
service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp]
metrics:
receivers: [otlp]
exporters: [otlphttp, logging]
telemetry:
metrics:
address: localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment