-
Notifications
You must be signed in to change notification settings - Fork 53
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
Data with long days time range is not able loaded in grafana v8.0+ dashboard when using Clickhouse plugins with v1.1.2. #140
Comments
Hello @sujuanliu! This seems to be an issue directly with ClickHouse plugin. I am going to transfer this issue to ClickHouse plugin repository. |
Default timeout on the connection is 10s @sujuanliu can you ensure the data source is configured with a higher value? |
using play
|
@gingerwizard i tried to configure the datasource with a higher value 3600 s, but got the same timeout error when showing 7 days' data. It doesn't looks like the issue is related to datasource timeout config because the data is still able to show when it takes more than 10s or even serveral minutes in plugin with version 1.0.1. i use ClickHouse to store Nginx access logs and monitor the domain requests statistic via grafana. Below is the SQL i used in grafana.
It is OK for showing data in 24 hours: Data is not showing in 7 days with error "driver: bad connection: Could not process SQL results": |
Are you able to try against main? We updated the driver to v2 yesterday which is a significant change. |
How can i install the main build with the driver v2 commit? What i need to do is to download the plugin zip file in main release, and run "yarn install && yarn dev"? i got a "Unsigned" ClickHouse plugin with version 1.1.2, and it prompts the plugin is disabled even i have configured appmode as development. Sorry i am not very familiar with the plugin build process. |
@sujuanliu we will try to release this week so you can test. v2 of the driver is a significant improvement and this looks like a driver issue in v1. |
I haven't seen the release of v2 yet. I will wait for the realse and test it. Thanks! |
@sujuanliu To build your own, follow the Grafana instructions: Clone/download repo
Now, rename the new dist folder grafana-clickhouse-datasource, and ZIP it up (so that the grafana-clickhouse-datasource folder is in the ZIP). Finally, follow the Grafana instructions for installing a plugin from ZIP, remember to add grafana-clickhouse-datasource to the allowed list of unsigned plugins. |
@sujuanliu release 2.0-beta out. Please try. |
@sujuanliu 2.0 out. please test. |
Closing this issue. Feel free to reopen if this hasn't been resolved. |
What happened:
Grafana: v9.0.0,v8.5.4, v8.3.3
ClickHouse Plugin: v1.1.2
When using ClickHouse plugin with version 1.1.2, 7 days' data in dashboard is not able loaded as expected. But data with short time range is loaded correctly in dashboard. e.g. 24 hours, 1-6hours
What you expected to happen:
7 days's data should be shown correctly in dashboard.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
The issue only occurs when installing ClickHouse plugins with lastest version 1.1.2. If you downgrade to version 1.0.1, the data is shown correctly in dashboard. There are 2000 million data for 7 days in ClickHouse, and it returns 1900+ rows when executing the SQL.
Environment:
The text was updated successfully, but these errors were encountered: