kedacore / charts

Helm charts for KEDA
Apache License 2.0
157 stars 224 forks source link

Keda Metrics not showing in Prometheus #686

Open wamak9 opened 2 months ago

wamak9 commented 2 months ago

Expected Behavior

once keda is installed, prometheus should be able to pick up the metrics from keda. A mentioned here: https://keda.sh/docs/2.15/operate/prometheus/

Actual Behavior

When I look at the metrics being scrapped, I only see few metrics but nothing for keda_scaler_

Screenshot 2024-09-11 at 5 21 43 PM Screenshot 2024-09-11 at 5 33 03 PM

Steps to Reproduce the Problem

  1. Install keda
    
    helm --upgrade install keda kedacore/keda \
    --version 2.15.1 \
    --namespace keda \
    --set operator.replicaCount=2 \
    --set prometheus.metricServer.enabled=true \
    --set prometheus.webhooks.enabled=true \
    --set profiling.metricsServer.enabled=true \
    --timeout 5m


  2. Navigate to Prometheus (We are not using Prometheus Operator)
  3. Type in `Keda_`, it should be able to list the metrics with `keda_scaler`

## Specifications

  - **KEDA Version:** *2.15.1*
  - **Platform & Version:** *k8s - AKS*
  - **Kubernetes Version:** *v1.28.9*
  - **Scaler(s):** *Please elaborate*
wamak9 commented 2 months ago

List of pods running.

NAME                                               READY   STATUS    RESTARTS   AGE
keda-admission-webhooks-5d54449488-jp66q           1/1     Running   0          31s
keda-operator-75c8fd57d-htg7z                      1/1     Running   0          31s
keda-operator-75c8fd57d-z6r5r                      1/1     Running   0          31s
keda-operator-metrics-apiserver-59866557cd-rxfmt   1/1     Running   0          31s
wamak9 commented 2 months ago

can we get someone to take a look at this ?