-
Notifications
You must be signed in to change notification settings - Fork 6
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
top pipe not supported in pie chart #126
Comments
Hi @tiny-pangolin ! The pie charts, by default, use
I think this issue will be fixed when we implement the switch with different query types for different types of panels. Please check this issue. |
Hi @tiny-pangolin ! Could you try to build the pie chart with the new version of the plugin? |
I'm now able to use the top pipe in queries, and it behaves as it did before |
i have a similar problem today, i guess the transform is the right option to do fix that |
The top pipe only works with the raw query type, but it doesn't work with the instant or range queries. When I run a range query or instant with the top pipe then I receive the following error.
@tenmozes the pie chart will work with the raw query and top pipe with transforms, or using an instant query with no transforms and no top pipe #61 has some examples for transforms |
At that moment, the only way to build a pie chart is to use transform functions and raw queries. Because the VLogs don't support the pipe when we are using stats queries. Maybe we need to update the logic on VL side. |
As of 0.10.0 the plugin supports 3 types of query raw, range, and instant, and a pie chart can be made with 0 transforms using an instant query, but the top isn't supported as seen in my previous screenshot. If you need to use the top pipe in your query right now, it requires using a raw query plus transforms |
Dashboard visualizations fail with a 422 error when using the top pipe to limit the amount of values even using a stats before the top pipe. Currently the workaround is to let Grafana limit the number of results shown to the user.
example of a query that returns an error:
fixed query:
The text was updated successfully, but these errors were encountered: