Sign inSign up

cupajaypeeig/adot-basic

By cupajaypeeig

•Updated over 3 years ago

AWS Distro for Opentelemetry with basic configuration for sidecar pattern deployment

Image
0

1.9K

cupajaypeeig/adot-basic repository overview

⁠Docker Configuration


FROM public.ecr.aws/aws-observability/aws-otel-collector:v0.27.0

COPY otel-config.yml /etc/otel-config.yml

ENTRYPOINT ["/awscollector"]

CMD ["--config=/etc/otel-config.yml"]

EXPOSE 4317 4318 13133

⁠OTEL Configuration

receivers:
  otlp:
    protocols:
      grpc: # port 4317
      http: # port 4318

exporters:
  awsxray:
  logging:

processors:
  batch/traces:
    timeout: 1s
    send_batch_size: 50
  batch/metrics:
      timeout: 60s
  memory_limiter:
    limit_mib: 120
    check_interval: 5s
  filter:
    spans:
      exclude:
        match_type: strict
        attributes:
          - key: http.user_agent
            value: ELB-HealthChecker/2.0

  resourcedetection:
    detectors:
      - env
      - system
      - ecs
      - ec2
  resource:
    attributes:
      - key: TaskDefinitionFamily
        from_attribute: aws.ecs.task.family
        action: insert
      - key: aws.ecs.task.family
        action: delete
      - key: InstanceId
        from_attribute: host.id
        action: insert
 
extensions:
  health_check:

service:
  extensions: [health_check]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [filter, resourcedetection, resource, batch/traces, memory_limiter]
      exporters: [logging, awsxray]

Tag summary

Content type

Image

Digest

sha256:af6ac9ed9…

Size

29.4 MB

Last updated

over 3 years ago

docker pull cupajaypeeig/adot-basic