open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.09k stars 2.38k forks source link

"limit" in receiver/awscloudwatchreceiver is not functioning as expected #35486

Open thilee-siva opened 1 month ago

thilee-siva commented 1 month ago

Component(s)

receiver/awscloudwatch

What happened?

Description

Steps to Reproduce

I’m using the OpenTelemetry Collector with the awscloudwatch receiver to fetch logs from CloudWatch and send them to Datadog. However, I’ve noticed that the receiver isn’t able to access all the log groups in the region, even though I’ve overridden the default limit of 50.

Expected Result

I have 75 log groups. When writing to any log group that appears alphabetically after the 50th position, I expect the logs to be read by OTEL.

Actual Result

However, it only reads the log groups that are before the 50th position.

Collector version

0.99.0

Environment information

Environment

OS: Ubuntu 20.04

OpenTelemetry Collector configuration

receivers:
  awscloudwatch:
    profile: "${PROFILE}"
    region: "${REGION}"
    logs:
      poll_interval: 1m
      groups:
        autodiscover:
          limit: 100

Log output

N/A

Additional context

N/A

github-actions[bot] commented 1 month ago

Pinging code owners: