Loki+promtail解决日志过大报错的问题ResourceExhausted desc = trying to send message larger than max

Loki+promtail解决日志过大报错的问题ResourceExhausted desc = trying to send message larger than max,第1张

Loki+promtail解决日志过大报错的问题ResourceExhausted desc = trying to send message larger than max

1、当日志量过大时候,promtail就报以下错误

rpc error: code = ResourceExhausted desc = trying to send message larger than max

2、解决方法在server下面加grpc_server_max_recv_msg_size、  grpc_server_max_send_msg_size参数,最好在Loki配置里也加一下

server:
  http_listen_port: 9080
  grpc_listen_port: 0
  grpc_server_max_recv_msg_size: 1572864000
  grpc_server_max_send_msg_size: 1572864000

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5690397.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存