Skip to content

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