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 prometheus trigger keeps returning empty results though present #6465

Open
anipadak opened this issue Jan 6, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@anipadak
Copy link

anipadak commented Jan 6, 2025

Report

The KEDA Prometheus trigger suddenly starts returning empty values. Restarting the KEDA operator pods temporarily resolves the issue, but after some time, it begins returning empty values again. however CloudWatch trigger works properly without any issues.

Keda version:

2.11.2

Scaledobject:

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: kic-gateay-scale
  namespace: infrastructure
spec:
  scaleTargetRef:
    kind: Deployment
    name: kic-gateway
  pollingInterval: 10
  maxReplicaCount: 4
  minReplicaCount: 4
  triggers:
  - type: prometheus
    metadata:
      metricName: http_requests_total
      serverAddress: http://kube-prometheus-prometheus.observability.svc.cluster.local:9090
      query: sum(increase(http_requests_total{pod=~"kic-gateway-.*"}[2m]))
      threshold: "200"
  - type: memory
    metadata:
      type: Utilization
      value: "50"
  - type: cpu
    metadata:
      type: Utilization
      value: "60"
  advanced:
    restoreToOriginalReplicaCount: true
    horizontalPodAutoscalerConfig:
      behavior:
        scaleDown:
          stabilizationWindowSeconds: 300

Expected Behavior

successful query should return the current metric value.

But it keeps returning empty value.

Actual Behavior

image

Steps to Reproduce the Problem

Its happening for one environment. Not able to reproduce the same behaviour in the different environment even after having same keda config.

KEDA Version

< 2.12.0

Kubernetes Version

< 1.28

Platform

Amazon Web Services

Scaler Details

prometheus

Reference similar issue

#5432

@anipadak anipadak added the bug Something isn't working label Jan 6, 2025
@zroubalik
Copy link
Member

Hi, this KEDA version is quite old. I recommend you to update it.

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
Status: To Triage
Development

No branches or pull requests

2 participants