You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scaling behavior is working correctly, but in the status section of the KEDA-managed HPA, I am seeing different metric values than expected. Specifically:
Instead of _active_fastify_connections, the status is showing values in milliCPU, which is incorrect.
The expected metric should reflect active Fastify connections, not CPU usage.
This is my keda scaled object configurations
Expected Behavior
The HPA should correctly display _active_fastify_connections in the status, matching the metric used in the ScaledObject.
Actual Behavior
The HPA status is reporting values in milliCPU instead of the correct external metric.
Steps to Reproduce the Problem
Define a ScaledObject with a Prometheus trigger using _active_fastify_connections.
Set a threshold of 4 for scaling.
Observe the status section of the KEDA HPA.
Logs from KEDA operator
2025-01-30T09:20:12Z INFO Detected resource targeted for scaling {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-advanced-steptransaction","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-advanced-steptransaction", "reconcileID": "55ccd8d4-c42e-4b88-bc46-7a39fe1822e2", "resource": "apps/v1.Deployment", "name": "api-v1-advanced-steptransaction"}
2025-01-30T09:20:13Z INFO Creating a new HPA {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-advanced-steptransaction","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-advanced-steptransaction", "reconcileID": "55ccd8d4-c42e-4b88-bc46-7a39fe1822e2", "HPA.Namespace": "backend", "HPA.Name": "keda-hpa-scaler-v1-advanced-steptransaction"}
2025-01-30T09:20:13Z INFO Initializing Scaling logic according to ScaledObject Specification {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-advanced-steptransaction","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-advanced-steptransaction", "reconcileID": "55ccd8d4-c42e-4b88-bc46-7a39fe1822e2"}
2025-01-30T09:20:13Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-advanced-steptransaction","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-advanced-steptransaction", "reconcileID": "a86831b2-d811-469c-94b7-991438f4b7c5"}
2025-01-30T09:20:13Z INFO Detected resource targeted for scaling {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-advanced-steptransaction","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-advanced-steptransaction", "reconcileID": "a86831b2-d811-469c-94b7-991438f4b7c5", "resource": "apps/v1.Deployment", "name": "api-v1-advanced-steptransaction"}
2025-01-30T09:20:16Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e58c872a-9d47-4f08-875a-2368d536b36f"}
2025-01-30T09:20:16Z INFO Detected resource targeted for scaling {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e58c872a-9d47-4f08-875a-2368d536b36f", "resource": "apps/v1.Deployment", "name": "api-v1-quote"}
2025-01-30T09:20:16Z INFO Creating a new HPA {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e58c872a-9d47-4f08-875a-2368d536b36f", "HPA.Namespace": "backend", "HPA.Name": "keda-hpa-scaler-v1-quote"}
2025-01-30T09:20:16Z INFO Initializing Scaling logic according to ScaledObject Specification {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e58c872a-9d47-4f08-875a-2368d536b36f"}
2025-01-30T09:20:16Z INFO Reconciling ScaledObject {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e2f62053-f57c-4e7b-9261-0752db333002"}
2025-01-30T09:20:16Z INFO Detected resource targeted for scaling {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"scaler-v1-quote","namespace":"backend"}, "namespace": "backend", "name": "scaler-v1-quote", "reconcileID": "e2f62053-f57c-4e7b-9261-0752db333002", "resource": "apps/v1.Deployment", "name": "api-v1-quote"}
2025-01-30T09:21:47Z INFO cert-rotation no cert refresh needed
2025-01-30T09:21:47Z INFO cert-rotation Ensuring CA cert {"name": "keda-admission", "gvk": "admissionregistration.k8s.io/v1, Kind=ValidatingWebhookConfiguration", "name": "keda-admission", "gvk": "admissionregistration.k8s.io/v1, Kind=ValidatingWebhookConfiguration"}
2025-01-30T09:21:47Z INFO cert-rotation Ensuring CA cert {"name": "v1beta1.external.metrics.k8s.io", "gvk": "apiregistration.k8s.io/v1, Kind=APIService", "name": "v1beta1.external.metrics.k8s.io", "gvk": "apiregistration.k8s.io/v1, Kind=APIService"}
2025-01-30T10:59:07Z INFO cert-rotation no cert refresh needed
2025-01-30T10:59:07Z INFO cert-rotation Ensuring CA cert {"name": "keda-admission", "gvk": "admissionregistration.k8s.io/v1, Kind=ValidatingWebhookConfiguration", "name": "keda-admission", "gvk": "admissionregistration.k8s.io/v1, Kind=ValidatingWebhookConfiguration"}
2025-01-30T10:59:07Z INFO cert-rotation Ensuring CA cert {"name": "v1beta1.external.metrics.k8s.io", "gvk": "apiregistration.k8s.io/v1, Kind=APIService", "name": "v1beta1.external.metrics.k8s.io", "gvk": "apiregistration.k8s.io/v1, Kind=APIService"}
Report
The scaling behavior is working correctly, but in the status section of the KEDA-managed HPA, I am seeing different metric values than expected. Specifically:
Instead of _active_fastify_connections, the status is showing values in milliCPU, which is incorrect.
The expected metric should reflect active Fastify connections, not CPU usage.
This is my keda scaled object configurations
Expected Behavior
The HPA should correctly display _active_fastify_connections in the status, matching the metric used in the ScaledObject.
Actual Behavior
The HPA status is reporting values in milliCPU instead of the correct external metric.
Steps to Reproduce the Problem
Logs from KEDA operator
This is how I am getting the values
KEDA Version
2.16.1
Kubernetes Version
1.30
Platform
Amazon Web Services
Scaler Details
prometheus scale
Anything else?
The text was updated successfully, but these errors were encountered: