Skip to content
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

maxAge setting in DatadogMetric not working #1607

Open
asierraq opened this issue Nov 12, 2024 · 0 comments
Open

maxAge setting in DatadogMetric not working #1607

asierraq opened this issue Nov 12, 2024 · 0 comments

Comments

@asierraq
Copy link

asierraq commented Nov 12, 2024

I have a DatadogMetric manifest like the following:

apiVersion: datadoghq.com/v1alpha1
kind: DatadogMetric
metadata:
  name: metric
spec:
  query: (sum:metric1{name:name1} by {name}.as_count().rollup(sum, 300) + sum:metric2{name:name1} by {name}.as_count().rollup(sum, 300)) * avg:metric3{name:name1} by {name}.rollup(sum, 300) / 3600

When I apply it and use it in an HPA, I get the following error:

Query returned outdated result, check MaxAge setting, query: (sum:metric1{name:name1} by {name}.as_count().rollup(sum, 300) + sum:metric2{name:name1} by {name}.as_count().rollup(sum, 300)) * avg:metric3{name:name1} by {name}.rollup(sum, 300) / 3600

Then I added the maxAge: "300" setting (to my surprise it is a string setting and not an integer) and now I'm not getting any events in the DatadogMetric.

Do you know what could be wrong with this setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant