Skip to content

[BUG] External metric values incorrectly interpreted by HPA #47389

@ctpeter

Description

@ctpeter

Agent version

7

Bug Report

What happened

We are using HPA with an external metric from Datadog via DatadogMetric CRD.

Example metric query:

max:kubernetes.cpu.usage.total{cluster_name:xxxxx, kube_deployment:xxxxx}.rollup(max,60)

HPA displays the metric as:

650634457m / 384M # CPU

Datadog shows the current value as 650634.4566410647

What we expected

  • HPA should interpret the external metric value in the correct units (nanocores → millicores)
  • The CURRENT column in kubectl get hpa should match the Datadog metric scale

Reproduction Steps

No response

Agent configuration

No response

Operating System

No response

Other environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions