-
Notifications
You must be signed in to change notification settings - Fork 96
Support log volume for SQL editor #1472
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
Conversation
SpencerTorres
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
# Conflicts: # package-lock.json
adamyeats
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, but needs tests (unit or E2E).
bossinc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 LGTM!
6b73cbb to
2c57b0c
Compare
|
Closing in favour of #1475 |
The SQL editor implementation in ClickHouse makes supporting the log volumes query challenging. The query issued for log volumes is dependant on identifying the time column which is not straightforward for raw SQL queries.
The logs panel supports a fallback function for calculating log volumes for data sources that do not inherently support the log volumes query. As ClickHouse does support the necessary query we couldn't directly use this. grafana/grafana#115348 has made the execution of this function more flexible, allowing the data source to determine if it supports the logs volume query by inspecting query attributes.
We now take advantage of this to identify if any of the queries make use of the SQL editor. If they do, we do not indicate that we support the logs volume query. In this case, the fallback function will be used instead.
Fixes #1364