Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KEDA Unable to Retrieve correct Kafka Metrics from ScaledObject on GKE #5730

Open
converge opened this issue Apr 23, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@converge
Copy link

Report

KEDA is unable to retrieve metrics correctly from a ScaledObject/ScaleTarget using a Kafka trigger when deployed to a GKE cluster (It works locally)

Expected Behavior

When HPA calculates the current metric value, it should not return -9223372036854775808m, but a valid Kafka lag.

Actual Behavior

When the Kafka ScaledObject is deployed to GKE:

  • The HorizontalPodAutoscaler reports a negative metric value (9223372036854775808m)

Steps to Reproduce the Problem

  1. deploy Keda in a GKE cluster
  2. create a ScaledObject with Kafka Source as Scaled Target
  3. kubectl get hpa -A (will show the metric with the negative value)

Logs from KEDA operator

There is no error or warning in the Keda operator.

KEDA Version

2.13.1

Kubernetes Version

1.27

Platform

Google Cloud

Scaler Details

Kafka

Anything else?

No response

@converge converge added the bug Something isn't working label Apr 23, 2024
@SpiritZhou
Copy link
Contributor

Could you change the log-level to debug in operator and send the operator logs?

@dttung2905
Copy link
Contributor

In addition to the log, could you provide the ScaledObject yaml config too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants