Troubleshooting Loki ResourceExhausted error
Resolve Loki ResourceExhausted errors by adjusting the batchSize in the FlowCollector resource or the maximum message size settings in your Loki configuration to ensure flow data stays within memory limits.
Loki may return a ResourceExhausted error when network flow data sent by network observability exceeds the configured maximum message size. If you are using the Red Hat Loki Operator, this maximum message size is configured to 100 MiB.
-
Navigate to Ecosystem → Installed Operators, viewing All projects from the Project drop-down menu.
-
In the Provided APIs list, select the Network Observability Operator.
-
Click the Flow Collector then the YAML view tab.
-
If you are using the Loki Operator, check that the
spec.loki.batchSizevalue does not exceed 98 MiB. -
If you are using a Loki installation method that is different from the Red Hat Loki Operator, such as Grafana Loki, verify that the
grpc_server_max_recv_msg_sizeGrafana Loki server setting is higher than theFlowCollectorresourcespec.loki.batchSizevalue. If it is not, you must either increase thegrpc_server_max_recv_msg_sizevalue, or decrease thespec.loki.batchSizevalue so that it is lower than the limit.
-
-
Click Save if you edited the FlowCollector.