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

color_by and color_scale options not working for signalfx_single_value_chart #284

Closed
jhollfelder opened this issue Feb 6, 2021 · 2 comments
Labels

Comments

@jhollfelder
Copy link

The documentation for signalfx_single_value_chart includes information for how to change the color of the displayed value when color_by = "Scale" is selected however this does not seem to be working.

Here is my terraform code snippet that has the problem:

resource "signalfx_single_value_chart" "tfchart_06" {
    name = "p99 Memory TF_JRH"
    description = "99th percentile of Memory utilization"
    program_text = <<-EOF
        A=data("memory.utilization").percentile(99).publish(label="p99-memory")
        EOF
    color_by = "Scale"
    color_scale = [ { gte = 85, color = "red" }, { lt = 85, color = "green" } ]
}

The error message I get when I run terraform plan is:

Error: Unsupported argument

  on main.tf line 79, in resource "signalfx_single_value_chart" "tfchart_06":
  79:     color_scale = [ { gte = 85, color = "red" }, { lt = 85, color = "green" } ]

An argument named "color_scale" is not expected here. Did you mean to define a
block of type "color_scale"?

Based on the documentation it looks like my syntax is correct. The version of Terraform I'm using is

Terraform v0.14.5
+ provider registry.terraform.io/splunk-terraform/signalfx v6.4.0

Is the problem on my end or does the documentation need to be updated? Thank you.

@jakzo
Copy link

jakzo commented Feb 26, 2021

Looks like the docs need to be updated. The test here shows that you should use it like this:

color_by = "Scale"
color_scale { gte = 85, color = "red" }
color_scale { lt = 85, color = "green" }

@atoulme atoulme added the bug label May 4, 2024
@atoulme
Copy link
Contributor

atoulme commented Oct 16, 2024

Closing this issue as unplanned. If this issue is still relevant, please reopen the issue.

@atoulme atoulme closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants