Report
The provided Grafana Dashboard does not work because the required metric keda_scaler_active is not rendered on the /metrics endpoint. Therefore, the dashboard variables for the dropdown boxes cannot be evaluated correctly. The reason is that not all metrics are correctly initialized at bootstrapping time (first recording with default values). In addition, if you use ScaledObjects exclusively with CPU/memory triggers, the following metrics are not recorded at all:
- keda_scaler_active
- keda_scaler_errors
- keda_scaler_metrics_value
- keda_scaler_metrics_latency
Expected Behavior
- All metrics are initialized after the bootstrapping phase with a default value so that they are rendered when requesting the /metrics endpoint so that Grafana dashboard variables can be evaluated correctly
- Metrics should also be recorded when only CPU/Memory triggers are set (currently skipped)
keda_scaler_active
keda_scaler_errors
keda_scaler_metrics_value
keda_scaler_metrics_latency
Actual Behavior
Metrics are missing if one is just using ScaledObjects with CPU/Memory triggers only
Steps to Reproduce the Problem
- Install KEDA v2.11.2
- Create ScaledObject with CPU/Memory trigger only
- Request /metrics endpoint of Operator
Logs from KEDA operator
No response
KEDA Version
2.11.2
Kubernetes Version
1.25
Platform
Microsoft Azure
Scaler Details
No response
Anything else?
No response
Report
The provided Grafana Dashboard does not work because the required metric
keda_scaler_activeis not rendered on the /metrics endpoint. Therefore, the dashboard variables for the dropdown boxes cannot be evaluated correctly. The reason is that not all metrics are correctly initialized at bootstrapping time (first recording with default values). In addition, if you use ScaledObjects exclusively with CPU/memory triggers, the following metrics are not recorded at all:-
keda_scaler_active-
keda_scaler_errors-
keda_scaler_metrics_value-
keda_scaler_metrics_latencyExpected Behavior
keda_scaler_activekeda_scaler_errorskeda_scaler_metrics_valuekeda_scaler_metrics_latencyActual Behavior
Metrics are missing if one is just using ScaledObjects with CPU/Memory triggers only
Steps to Reproduce the Problem
Logs from KEDA operator
No response
KEDA Version
2.11.2
Kubernetes Version
1.25
Platform
Microsoft Azure
Scaler Details
No response
Anything else?
No response