Chore: Set grpc limits explicitly (#2101)
Set `MaxReceiveMsgSize` as 32mb and `MaxSendMsgSize` as 100mb
This commit is contained in:
5
.changeset/floppy-singers-carry.md
Normal file
5
.changeset/floppy-singers-carry.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'grafana-zabbix': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Set grpc limits explicitly
|
||||||
@@ -26,6 +26,10 @@ func main() {
|
|||||||
CallResourceHandler: httpResourceHandler,
|
CallResourceHandler: httpResourceHandler,
|
||||||
QueryDataHandler: ds,
|
QueryDataHandler: ds,
|
||||||
CheckHealthHandler: ds,
|
CheckHealthHandler: ds,
|
||||||
|
GRPCSettings: backend.GRPCSettings{
|
||||||
|
MaxReceiveMsgSize: 32 * 1024 * 1024,
|
||||||
|
MaxSendMsgSize: 100 * 1024 * 1024,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pluginLogger.Error("Error starting Zabbix datasource", "error", err.Error())
|
pluginLogger.Error("Error starting Zabbix datasource", "error", err.Error())
|
||||||
|
|||||||
Reference in New Issue
Block a user