8000 authMode parameter is not optional for Datadog scaler · Issue #6683 · kedacore/keda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

authMode parameter is not optional for Datadog scaler #6683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
qlikcoe opened this issue Apr 2, 2025 · 2 comments
Open

authMode parameter is not optional for Datadog scaler #6683

qlikcoe opened this issue Apr 2, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@qlikcoe
Copy link
qlikcoe commented Apr 2, 2025

Report

The documentation for Datadog scaler mentions authMode: as an optional authentication parameter, where the default value is the only possible value for this scaler and it's bearer.

I couldn't make this scaler work until I manually set this parameter to authMode: bearer. Right away Keda was able to authenticate against datadog-cluster-agent-metrics-api.

Expected Behavior

Keda should be using bearer for the authMode by default when sending requests to Datadog's Cluster Agent (metrics endpoint on 8443)

Actual Behavior

Keda is not able to communicate with the Datadog's Cluster Agent.

Steps to Reproduce the Problem

  1. Create DatadogMetric resource with some query that is returning a valid value
  2. Create ScaledObject that is using Datadog trigger and Cluster Agent as proxy (useClusterAgentProxy: "true")
  3. Check the corresponding HPA and it's status, expect to see an error message, e.g:
unable to get external metric devops-internal/datadogmetric@devops-internal:test-dd-metric/&LabelSelector{MatchLabels:map[string]string{scaledobject.keda.sh/name: test-dd-metric,},MatchExpressions:[]LabelSelectorRequirement{},}: unable to fetch metrics from external metrics API: rpc error: code = Unknown desc = error when getting metric values metric:datadogmetric@devops-internal:test-dd-metric encountered error

Logs from KEDA operator

No response

KEDA Version

2.15.1

Kubernetes Version

1.30

Platform

Amazon Web Services

Scaler Details

Datadog

Anything else?

No response

@qlikcoe qlikcoe added the bug Something isn't working label Apr 2, 2025
@qlikcoe
Copy link
Author
qlikcoe commented Apr 2, 2025

cc @arapulido

@arapulido
Copy link
Contributor

Thanks for the report! I will investigate this one. @JorTurFer can you assign this one to me, please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

2 participants
0