Skip to content

Encountering issues retrieving metric data from CloudWatch when using more than one dimension in the query. #6685

Open
@tushar-rahinj

Description

@tushar-rahinj

Report

We are using AWS Cloudwatch scaler. When utilising expression and one dimension, everything works as expected, however when the metric has more than one dimension, the scaler does not retrieve metrics data and default values are returned.

Expected Behavior

Using below triggers we expect to retrieve data from cloudwatch, but this is not happening

triggers:
- metadata:
        awsRegion: region
      defaultMetricCollectionTime: "60"
      defaultMetricStat: Average
      defaultMetricStatPeriod: "60"
      dimensionName: Cluster Name;Consumer Group;Topic
      dimensionValue: Cluster Name value;Consumer Group value;Topic value
      identityOwner: operator
      metricName: SumOffsetLag
      minMetricValue: "0"
      namespace: AWS/Kafka
      targetMetricValue: "100"
   type: aws-cloudwatch

Actual Behavior

Getting below error:
INFO aws_cloudwatch_scaler empty metric data received, returning minMetricValue

Steps to Reproduce the Problem

  1. Create the trigger
  2. See that metrics value is not returned from keda

Logs from KEDA operator

INFO	aws_cloudwatch_scaler	empty metric data received, returning minMetricValue

KEDA Version

2.16.1

Kubernetes Version

1.30

Platform

Amazon Web Services

Scaler Details

aws-cloudwatch

Anything else?

I have already applied the below fix by upgrading the helm chart to 2.16.1, however the issue still persists.
#6236

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions