CMA failing to create ScaledObject since no username in RHOCP 4

Solution Verified - Updated -

Issue

  • When a scaledobject is configured as documented, it's failing with the error:

    2023-07-04T07:32:24.057456740Z 2023-07-04T07:32:24Z    ERROR    Error getting scalers    {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"example-scaledobject","namespace":"test"}, "namespace": "test", "name": "example-scaledobject", "reconcileID": "22be9633-2537-4c40-8cd7-9b9054799692", "error": "error parsing prometheus metadata: no username given"}
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Custom Metrics AutoScaler (CMA)
    • 2.10
  • KEDA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content