Skip to content

Instantly share code, notes, and snippets.

@EddieEldridge
Created June 16, 2022 11:13
Show Gist options
  • Save EddieEldridge/327ec9145c4d2f9e9f1d22271ff78e2b to your computer and use it in GitHub Desktop.
Save EddieEldridge/327ec9145c4d2f9e9f1d22271ff78e2b to your computer and use it in GitHub Desktop.
Collector Config used with aws-otel-lambda
# ==================================
# RECEIVERS
# ==================================
receivers:
otlp:
protocols:
http:
# ==================================
# EXPORTERS
# ==================================
exporters:
logging:
loglevel: debug
otlp/new_relic_metric:
endpoint: ${NEW_RELIC_OPENTELEMETRY_METRIC_ENDPOINT}
headers:
api-key: ${NEW_RELIC_LICENSE_KEY}
otlp/new_relic_trace:
endpoint: ${NEW_RELIC_OPENTELEMETRY_TRACE_ENDPOINT}
headers:
api-key: ${NEW_RELIC_LICENSE_KEY}
# ==================================
# PROCESSORS
# ==================================
processors:
resource:
attributes:
- key: service.name
value: ${ROLE}-${ENVIRONMENT}
action: upsert
- key: tags.service.region
value: ${REGION}
action: upsert
- key: tags.fips.enabled
value: ${FIPS_ENABLED}
action: upsert
- key: tags.aws.account.id
value: ${ACCOUNT_ID}
action: upsert
- key: tags.nr.account.id
value: ${NEW_RELIC_ACCOUNT_ID}
action: upsert
# ==================================
# SERVICE
# ==================================
service:
pipelines:
traces:
receivers: [otlp]
exporters: [logging, otlp/new_relic_trace]
processors:
- resource
metrics:
receivers: [otlp]
exporters: [logging, otlp/new_relic_metric]
processors:
- resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment