Skip to content

The update results api should name the invalid metrics causing error. #1604

@bhanvimenghani

Description

@bhanvimenghani

Describe the bug
While calling Update results with an invalid metric name, it now gives a generic error message as shown below, but it should mention the name of the faulty metric so that its easier to debug and fix name of the metrics.

How to reproduce it
To reproduce enter invalid name "bhanviCpuUsage" instead of "namespaceCpuUsage" in the update results json

Expected behavior
a clear bug message, instead of printing everything under the sun

Relevant logs
Attach any relevant logs to help debug the issue

Environment:

  • Kubernetes Cluster [e.g. minikube, openshift, kind]
  • Version
  • OS

Additional context
Add any other context about the problem here, any links or screenshots

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions