reachfh / otel-collector

Configuration for OpenTelemetry collector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

otel-collector

This repository configures the AWS Distro for OpenTelemetry Collector, Jaeger UI, and Datadog agent to run in containers.

The collector receives traces from an application and sends them to a back end service. This includes configuration for Jaeger, Datadog, and AWS X-Ray.

AWS Distro for OpenTelemetry Collector

The AWS "distro" is based on the OpenTelemetry upstream project, with the addition of a number of other protocols. It is configured to receive OpenTelemetry traces and send them to Datadog.

docker-compose up aws-otel-collector

Datadog agent

Add a .env file which sets Datadog environment vars, most important of which is the API key:

# SECRET ENV VARIABLES

DD_API_KEY="abc123"

# NON SECRET ENV VARIABLES
#
# The variables below are not secret and have default values, you can change them if you need to:

# You can enable or disable sending development env traces to Datadog
# by setting this variable with true or false (true enables, false disables).
DD_APM_ENABLED=true

DD_HOSTNAME=jake-dev
DD_HOST=jake-dev
DD_TAGS=environment:development
DD_ENV=development
DD_APM_ENV=development
# DD_CHECKS_TAG_CARDINALITY=high
# DD_DOGSTATSD_TAG_CARDINALITY=high
DD_LOGS_ENABLED=true
# DD_LOG_LEVEL=debug
docker-compose run --service-ports datadog-agent

Jaeger

open http://localhost:16686/

Links

TODO

About

Configuration for OpenTelemetry collector

License:Apache License 2.0