Chore: Set grpc limits explicitly (#2101)

Set `MaxReceiveMsgSize` as 32mb and `MaxSendMsgSize` as 100mb
This commit is contained in:
ismail simsek
2025-10-17 11:41:30 +02:00
committed by GitHub
parent 1f6ba92d96
commit a489c588d0
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'grafana-zabbix': patch
---
Set grpc limits explicitly

View File

@@ -26,6 +26,10 @@ func main() {
CallResourceHandler: httpResourceHandler,
QueryDataHandler: ds,
CheckHealthHandler: ds,
GRPCSettings: backend.GRPCSettings{
MaxReceiveMsgSize: 32 * 1024 * 1024,
MaxSendMsgSize: 100 * 1024 * 1024,
},
})
if err != nil {
pluginLogger.Error("Error starting Zabbix datasource", "error", err.Error())