Skip to content

Enable dataproxy.row_limit configuration option from Grafana and Prepare 2.1.0 release #375

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

Merged
merged 2 commits into from
Mar 20, 2025

Conversation

kevinwcyu
Copy link
Contributor

@kevinwcyu kevinwcyu commented Mar 20, 2025

Currently sqlds based data sources don't make use of the dataproxy.row_limit setting in Grafana. setting. It defaults to an unlimited number of rows. This PR added a setting for data sources to opt-in to using the row_limit setting.

This PR opts-in to using the row_limit setting so that Redshift will now limit the rows returned to the default value of 1000000 if the user doesn't explicitly set a row_limit.

In the screenshot below, I have the following set in my custom.ini. The warning in the query editor header section shows that the number of results have been limited.

[dataproxy]
row_limit = 5
query example with row limit set
@kevinwcyu kevinwcyu requested a review from a team as a code owner March 20, 2025 19:16
@kevinwcyu kevinwcyu requested review from iwysiu and njvrzm March 20, 2025 19:16
@kevinwcyu kevinwcyu changed the title Enable dataproxy.row_limit configuration option from Grafana Mar 20, 2025
@kevinwcyu kevinwcyu merged commit 351efe5 into main Mar 20, 2025
13 checks passed
@kevinwcyu kevinwcyu deleted the kevinwcyu/enable-row-limit branch March 20, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants