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

Error "group_by cannot be empty" with bar_chart #250

Open
tifennlegoff opened this issue Aug 2, 2024 · 4 comments
Open

Error "group_by cannot be empty" with bar_chart #250

tifennlegoff opened this issue Aug 2, 2024 · 4 comments

Comments

@tifennlegoff
Copy link

Hey, when we add a bar_chart graph with X AXIS at Value, we have an empty graph with group_by cannot be empty.
I tried to modify graph, set X AXIS at Time and back to Value, then the graph works with Group By filled at partition. I saved and export as Json to see what is the missing setting and I seen it was metrics.groupNames: partition. I added the setting group_names = ["partition"] under bar_chart.query.metrics and bar_chart.query.metrics.promql_query but I still have the same issue.

Affected Resource(s)

  • coralogix_dashboard

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

          {
            height = 35
            widgets = [
              {
            title       = "Consumer lag partition"
            description = "Kafka consumer lag (by partition)"
            definition = {
              bar_chart = {
                sort_by = "value"
                query = {
                  metrics = {
                    promql_query = <<EOT
sum by (partition) (
  kafka_consumergroup_lag{
    consumergroup="xxx",
    topic="xxx",
    kubernetes_namespace="xxx"
  }
)
                        EOT
                      group_names = ["partition"]
                  }
                }
                xaxis = {
                  value = {}
                }
              }
            }
              }
            ]
          }

Debug Output

Panic Output

Expected Behavior

Actual Behavior

The graph is empty with group_by cannot be empty error

Steps to Reproduce

  1. Add a bar_chart graph on dashboard with prom query and X AXIS at Value

Important Factoids

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
Copy link
Author

@iagobanov
Copy link

CX team got eyes on this one. I'll keep you posted as soon as possible

@tifennlegoff
Copy link
Author

Thanks @iagobanov

@tifennlegoff
Copy link
Author

Hi @iagobanov, do you have any news about it? Actually, I tried to use the latest version of provider but we still have empty dash because of that.
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