Skip to content

awsecscontainermetrics receiver validation fails on contrib collector 0.126.0 #455

@alexa-gt

Description

@alexa-gt

Hi there,

The otelbin tool does not seem to be able to validate the awsecscontainermetrics receiver on otelcol contrib 0.126.0 and above.

Error:

failed to create "awsecscontainermetrics" receiver for data type "metrics": unable to detect task metadata endpoint: no valid endpoint for environment variable ECS_CONTAINER_METADATA_URI_V4: endpoint is empty

It seems like the new contrib image forces a load of the ECS_CONTAINER_METADATA_URI_V4 variable which is not found.

Sample config that fails:

receivers:
  awsecscontainermetrics:
exporters:
  awsemf:
      namespace: 'ECS/ContainerMetrics/OpenTelemetry'
      log_group_name: '/ecs/containermetrics/opentelemetry'

service:
  pipelines:
      metrics:
          receivers: [awsecscontainermetrics]
          exporters: [awsemf]

https://www.otelbin.io/?#config=receivers%3A*N__awsecscontainermetrics%3A*Nexporters%3A*N__awsemf%3A*N______namespace%3A_*%22ECS%2FContainerMetrics%2FOpenTelemetry*%22*N______log*_group*_name%3A_*%22%2Fecs%2Fcontainermetrics%2Fopentelemetry*%22*N*Nservice%3A*N__pipelines%3A*N______metrics%3A*N__________receivers%3A_%5Bawsecscontainermetrics%5D*N__________exporters%3A_%5Bawsemf%5D*N%7E&distro=otelcol-contrib%7E&distroVersion=v0.129.1%7E

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions