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

axis block not expected on timeseries_definition #291

Closed
ScOut3R opened this issue Aug 20, 2019 · 3 comments
Closed

axis block not expected on timeseries_definition #291

ScOut3R opened this issue Aug 20, 2019 · 3 comments

Comments

@ScOut3R
Copy link

ScOut3R commented Aug 20, 2019

Hi,

Either I am trying to use the axis block wrong or the timeseries_definition block does not support it.

I would really appreciate some guidance from the more experienced out there. :)

Terraform Version

0.12.6

Datadog provider version

2.2.0

Affected Resource(s)

Please list the resources as a list, for example:

  • timeseries_definition

Terraform Configuration Files

 widget {
    timeseries_definition {
      title = "Memory"

      request {
        q = "max:aws.ecs.cluster.memory_utilization{$aws_account}"
      }
    }

    axis {
      min = 0
      max = 100
    }
  }

Debug Output

Error: Unsupported block type

  on dashboard_ecs.tf line 116, in resource "datadog_dashboard" "ecs_cluster":
 116:     axis {

Blocks of type "axis" are not expected here.

Expected Behavior

axis block is supported by the timeseries_definition statement.

Actual Behavior

axis block is not supported by the timeseries_definition statement.

@nmuesch
Copy link
Contributor

nmuesch commented Aug 20, 2019

Hey, thanks for the issue report. Indeed axis controls aren't currently supported in the timeseries definition of the Dashboard Resource. However, it looks like this open PR should add support for this feature - https://github.com/terraform-providers/terraform-provider-datadog/pull/282

Note that with the current PR implementation, the field will be yaxis instead of axis.

@ScOut3R
Copy link
Author

ScOut3R commented Aug 20, 2019

Thank you @nmuesch! I will keep an eye on #282!

@nmuesch
Copy link
Contributor

nmuesch commented Sep 12, 2019

Hey @ScOut3R this PR went out with Provider 2.4.0 - https://github.com/terraform-providers/terraform-provider-datadog/blob/master/CHANGELOG.md#240-september-11-2019 Unfortunately the documentation was added after this release, but you can find that here in #314 for now.

I'll go ahead and close this issue but let us know if you hit any issues here. Thanks!

@nmuesch nmuesch closed this as completed Sep 12, 2019
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