keda icon indicating copy to clipboard operation
keda copied to clipboard

Keda not work with Prometheus and Cron target

Open kadhamecha-conga opened this issue 2 weeks ago • 0 comments

Report

Keda not working with two target as prometheus and cron. trigger based on prometheus is working fine, but when i have two target is not wokring as expected.

  • apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: name: example-app-scale spec: maxReplicaCount: 10 minReplicaCount: 1 scaleTargetRef: kind: Deployment name: example-app triggers: - type: prometheus metadata: serverAddress: http://prometheus.monitoring:9090 metricName: http_requests_total threshold: "100" query: sum(rate(http_requests_total{job="example-app"}[2m])) - type: cron metadata: timezone: US/Eastern start: "0 6 * * 6" end: "0 0 * * 0" desiredReplicas: "1"
    advanced: horizontalPodAutoscalerConfig: behavior: scaleDown: stabilizationWindowSeconds: 1800

Expected Behavior

it should work with both target

Actual Behavior

it is not scaling down on replicas based on cron .

Steps to Reproduce the Problem

Logs from KEDA operator

example

KEDA Version

2.13.1

Kubernetes Version

1.28

Platform

None

Scaler Details

No response

Anything else?

No response

kadhamecha-conga avatar Jun 22 '24 06:06 kadhamecha-conga