Skip to content

keda_scaler_metrics_value metric exposed by the KEDA operator doesn't reflect changes in SO #6617

Closed
@jkremser

Description

@jkremser

Report

KEDA operator exposes the current value for each SO's scaler using the metric called keda_scaler_metrics_value.

However, if there is a change to ScaledObject or ScaledJob that adds/removes/edits the triggers, it is not reflected by the metrics.

Expected Behavior

keda_scaler_metrics_value for the non-existent scaler is gone

Actual Behavior

keda_scaler_metrics_value for the non-existent scaler is there until the operator is restarted, then it starts fresh and the issue is gone

Steps to Reproduce the Problem

So a simple reproducer is to:

  1. add another scaler to SO
  2. check metrics
  3. remove the scaler from SO
  4. check metrics

Logs from KEDA operator

No response

KEDA Version

2.16.1

Kubernetes Version

1.32

Platform

Any

Scaler Details

any

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status

      Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions