Skip to content

Add ResponseLimitMiddleware to the datasource #559

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 4 commits into from
Aug 15, 2025
Merged

Conversation

idastambuk
Copy link
Contributor

Adds ResponseLimitMiddleware to the datasource, per this request that uses the grafana config to set response limit in bytes

The middleware was added to the plugin-sdk here, but it wasn't added as one of the default ones, so we have to do it manually

Setting in grafana config

[dataproxy] 
response_limit = 1

should result in an error response:
Screenshot 2025-08-13 at 13 26 54

@idastambuk idastambuk requested a review from a team as a code owner August 13, 2025 11:32
@idastambuk idastambuk requested review from kevinwcyu and njvrzm and removed request for a team August 13, 2025 11:32
@idastambuk idastambuk merged commit 2b9ef1a into main Aug 15, 2025
20 checks passed
@idastambuk idastambuk deleted the response-limit branch August 15, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants