我在 Docker 中运行 Loki 进行测试,最近从 Promtail 和 Loki 容器中收到以下错误:
level=warn ts=2022-02-18T09:41:39.186511145Z caller=client.go:349 component=client host=loki:3100 msg="error sending batch, will retry" status=429 error="server returned HTTP status 429 Too Many Requests (429): Maximum active stream limit exceeded, reduce the number of active streams (reduce labels or reduce label values), or contact your Loki administrator to see if the limit can be increased"
Run Code Online (Sandbox Code Playgroud)
我尝试在 Loki 配置中增加限制设置 (ingestion_rate_mb和)。ingestion_burst_size_mb
我设置了两个 Promtail 作业 - 一个作业从本地目录(当前为 8TB 并且不断增加)提取 MS Exchange 日志,另一个作业从 syslog-ng 获取假脱机日志。
我读到减少标签有帮助。但我只使用两个标签。