Skip to content

Averaged Value for Keda Metrics-API is Zero even though It's Large Value #7441

Description

@JoonPark1

Report

The issue here is the current value is reported as zero according to keda scaledobject's hpa based on trigger scaler of type metrics-api. The correct value should be in range of quintillion.

Expected Behavior

The expected behavior is to report the exact quintillion value for number.

Actual Behavior

The actual behavior is consistently being reported for external metric as zero.

Steps to Reproduce the Problem

  1. Define metrics-api trigger that is based on metric whose true value is large (in range of quintillion).
  2. Describe the hpa and see the current value remains zero over time.

Logs from KEDA operator

Keda operator logs is not the issue here so it won't be that relevant...

KEDA Version

2.17.0

Kubernetes Version

1.32

Platform

Microsoft Azure

Scaler Details

Metrics-API

Would you be open to contributing a fix?

Maybe

Anything else?

Here is the screenshot of the true metric value reported on Grafana:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingscaler-metrics-apiAll issues related to our Metrics API scaler

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Ready To Ship

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions