grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.39k stars 203 forks source link

Cloudwatch exporter doesn't discover SQS queues without tags #1531

Open tokongs opened 2 months ago

tokongs commented 2 months ago

What's wrong?

Sorry for the noise if this is intended behavior, but it's confusing.

When using the discover block with the Cloudwatch exporter, without search_tags set. Only queues that have some tag will be discovered.

Steps to reproduce

  1. Create an SQS queue without any tags
  2. Create an SQS queue with some tag
  3. Run alloy with a config like below.

    prometheus.exporter.cloudwatch "queues" {
    sts_region = "eu-north-1"
    
    discovery {
        type        = "AWS/SQS"
        regions     = ["eu-north-1"]
    
        metric {
            name       = "NumberOfMessagesSent"
            statistics = ["Average"]
            period     = "1m"
        }
    }
    }
  4. See that only the one with a tag is discovered.

System information

No response

Software version

No response

Configuration

prometheus.exporter.cloudwatch "queues" {
    sts_region = "eu-north-1"

    discovery {
        type        = "AWS/SQS"
        regions     = ["eu-north-1"]

        metric {
            name       = "NumberOfMessagesSent"
            statistics = ["Average"]
            period     = "1m"
        }
   }
}

Logs

No response

github-actions[bot] commented 1 month ago

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it. If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue. The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity. Thank you for your contributions!