DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
349 stars 1.02k forks source link

maxAge setting in DatadogMetric not working #1607

Open asierraq opened 2 weeks ago

asierraq commented 2 weeks ago

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?

celenechang commented 20 hours ago

Hi @asierraq , thank you for opening the issue. I think it would be helpful to have more details to investigate your issue further - do you mind opening a ticket with Datadog support? Thank you.

asierraq commented 19 hours ago

Thank you @celenechang , I just opened this ticket https://help.datadoghq.com/hc/en-us/requests/1942642