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

aggregator ignored for query_value on timeboards #49

Closed
dustinblackman opened this issue Feb 5, 2018 · 3 comments
Closed

aggregator ignored for query_value on timeboards #49

dustinblackman opened this issue Feb 5, 2018 · 3 comments

Comments

@dustinblackman
Copy link

dustinblackman commented Feb 5, 2018

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Terraform v0.11.3
+ provider.datadog v1.0.3

Affected Resource(s)

Please list the resources as a list, for example:

  • datadog_timeboard

Terraform Configuration Files

resource "datadog_timeboard" "testboard" {
  title       = "testboard"
  description = "testboard"
  read_only   = true

  graph {
    title     = "Success Percentage"
    viz       = "query_value"
    precision = 3

    request {
      q          = "sum:int.request.successful{*}.as_count()/sum:int.request.count{*}.as_count()"
      aggregator = "min"
    }
  }
}

Debug Output

https://gist.github.com/dustinblackman/639422d1baec7a8d5cdcf8c0ab4b6369

Expected Behavior

Requests aggregator should be set to min.

Actual Behavior

aggregator is completely ignored and the default of avg is set on the datadog dashboard.
example

Steps to Reproduce

  1. Copy example above to test file
  2. Replace metrics with something that exist in your datadog account
  3. terraform apply

Important Factoids

  • None
@dustinblackman
Copy link
Author

Actually turns out this may be a Datadog UI bug as looking at the requests made, it is in fact doing min on the request, but gets reset in the edit view. Is there possibly defaults missing that resets their UI?

@nmuesch
Copy link
Contributor

nmuesch commented Jun 4, 2019

Hey @dustinblackman I'm sorry for not responding sooner here. I just tested this on the latest provider (thanks for the example config) and I wasn't able to reproduce. Are you still experiencing this issue?

@dustinblackman
Copy link
Author

No worries! Looks fine now, thanks!

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

2 participants