Skip to content

Commit a489c58

Browse files
authored
Chore: Set grpc limits explicitly (#2101)
Set `MaxReceiveMsgSize` as 32mb and `MaxSendMsgSize` as 100mb
1 parent 1f6ba92 commit a489c58

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/floppy-singers-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'grafana-zabbix': patch
3+
---
4+
5+
Set grpc limits explicitly

pkg/plugin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ func main() {
2626
CallResourceHandler: httpResourceHandler,
2727
QueryDataHandler: ds,
2828
CheckHealthHandler: ds,
29+
GRPCSettings: backend.GRPCSettings{
30+
MaxReceiveMsgSize: 32 * 1024 * 1024,
31+
MaxSendMsgSize: 100 * 1024 * 1024,
32+
},
2933
})
3034
if err != nil {
3135
pluginLogger.Error("Error starting Zabbix datasource", "error", err.Error())

0 commit comments

Comments
 (0)