From a489c588d0fa5c294fa2f84932d937d83b0d1237 Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Fri, 17 Oct 2025 11:41:30 +0200 Subject: [PATCH] Chore: Set grpc limits explicitly (#2101) Set `MaxReceiveMsgSize` as 32mb and `MaxSendMsgSize` as 100mb --- .changeset/floppy-singers-carry.md | 5 +++++ pkg/plugin.go | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/floppy-singers-carry.md diff --git a/.changeset/floppy-singers-carry.md b/.changeset/floppy-singers-carry.md new file mode 100644 index 0000000..056427d --- /dev/null +++ b/.changeset/floppy-singers-carry.md @@ -0,0 +1,5 @@ +--- +'grafana-zabbix': patch +--- + +Set grpc limits explicitly diff --git a/pkg/plugin.go b/pkg/plugin.go index cd35a26..8c44754 100644 --- a/pkg/plugin.go +++ b/pkg/plugin.go @@ -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())