[英]Does Rancher 2.5+ logging support Grafana Loki?
I'm trying to setup logging using the new rancher 2.5 logging system, that's using the Banzai operator.我正在尝试使用新的 rancher 2.5 日志系统设置日志记录,该系统使用 Banzai 运算符。 I was thinking to use the Banzai Operator for ingestion and push to a Grafana Loki output.
我正在考虑使用 Banzai Operator 进行摄取并推送到 Grafana Loki output。
The problem is that I'm getting some "entry out of order" errors on the loki side and I'm not sure if that is caused by rancher not supporting loki by default so that causes problems or if this is some config related issue on loki side.问题是我在 loki 方面遇到了一些“输入乱序”错误,我不确定这是否是由于牧场主默认不支持 loki 导致的,或者这是否是一些与配置相关的问题洛基这边。
The documentation is confusing:文档令人困惑:
My questions are:我的问题是:
My Cluster output looks like this, (taken from the banzaicloud documentation):我的集群 output 看起来像这样,(取自 banzaicloud 文档):
spec:
loki:
buffer:
timekey: 1m
timekey_use_utc: true
timekey_wait: 30s
configure_kubernetes_labels: true
url: http://mylokihost
status:
active: true
Solved:解决了:
I've managed to do it It is as easy as:我设法做到了这很简单:
spec:
loki:
configure_kubernetes_labels: true
url: http://10.43.14.83:3100
The support is there by default by banzai cloud, just the ui and documentation are... bad. banzai cloud默认提供支持,只是ui和文档......不好。 I had to dig through the operator code and found the good one.
我不得不仔细研究操作员代码并找到好的那个。
One other thing I found is that filters don't work as expected, in the flow configuration.我发现的另一件事是过滤器在流配置中没有按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.