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

Add percent in Line Chart units #273

Open
tifennlegoff opened this issue Oct 4, 2024 · 0 comments
Open

Add percent in Line Chart units #273

tifennlegoff opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tifennlegoff
Copy link

Description

Can you add percent units with Line Chart? On Coralogix UI, we can chose % (0-1) and % (0-100) but with Terraform, it's not available.

Attribute
layout.sections[5].rows[2].widgets[1].definition.line_chart.query_definitions[0].unit
value must be one of: ["microseconds" "mbytes" "bytes_iec" "mibytes"
"euro_cents" "euro" "gbytes" "unspecified" "milliseconds" "seconds" "usd"
"bytes" "kbytes" "kibytes" "gibytes" "usd_cents"], got: "percent"

New or Affected Resource(s)

  • coralogix_dashboard

Potential Terraform Configuration

On Coralogix UI, if I chose Percent 0-100 and I export the dashboard, I see the Unit at UNIT_PERCENT_ZERO_HUNDRED, maybe the unit value can be percent_0_100 🤔

...
                  {
                    data_mode_type = "unspecified"
                    is_visible     = true
                    name           = "query"
                    query = {
                      metrics = {
                        promql_query = <<EOT
avg(
  container_cpu_utilization{
    k8s_namespace_name="xxx",
    k8s_cluster_name="xxx",
    k8s_pod_name=~"xxx.*"
  }
) by (k8s_container_name)
                            EOT
                      }
                    }
                    resolution = {
                      buckets_presented = 96
                    }
                    scale_type         = "linear"
                    series_count_limit = 20
                    unit               = "percent_0_100"
                  }
...

References

  • #0000

Community Note

  • Please vote on this issue by adding a
    👍 reaction to the original
    issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@tifennlegoff tifennlegoff added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant