-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Selecting "Raw Document" metric breaks graph permanently #6367
Comments
You cannot use Sum with Raw Document you need a bucket aggregation (Terms or date histogram). The graph panel does not support Raw Document queries currently, only table panel. But the "Invalid Query" error that breaks the query editor is a bug that should be fixed. |
Just to clarify, I wasn't try to use both Sum and Raw Document; I was trying to switch between them. And when I selected Raw Document, all the "group by" fields disappeared, so I couldn't do a bucket aggregation. Same behavior on the Table panel. |
I have the same problem but with Prometheus datasource. Not sure why this error appeared ( maybe because of templated datasource and switching between them ). Message:
Stack trace:
Running dockerized Grafana v4.1.2 (commit: v4.1.2) |
Same problem here with a 4.1.2 Debian package. |
I am facing the same problem with version 5.3.2 as well. |
Can somebody correct the typo in "Documnent" in the title? |
Let us know if anyone interested in contributing a fix for this? We'll be available with guidance and helping out reviewing etc. |
Please include this information:
IMPORTANT If it relates to metric data viz:
When you select "Raw Document", it performs a query, which returns valid results. In the JS console, an error appears:
Then when you select a different metric type, like "Sum", another error appears:
The text was updated successfully, but these errors were encountered: