简体   繁体   English

Rancher 2.5+ 日志记录是否支持 Grafana Loki?

[英]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:文档令人困惑:

  1. On one hand on the banzai cloud one-eye logging operator documentation, loki is supported as an output https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/loki/一方面,在 banzai cloud one-eye logging operator 文档中,loki 被支持为 output https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/loki/
  2. On the other hand the rancher documentation there's an example on how to deal with "unsupported" outputs by deploying another fluentbit container.另一方面,牧场主文档中有一个关于如何通过部署另一个 fluentbit 容器来处理“不支持”输出的示例。 https://rancher.com/docs/rancher/v2.x/en/logging/v2.5/ https://rancher.com/docs/rancher/v2.x/en/logging/v2.5/

My questions are:我的问题是:

  1. Does anyone know what's the meaning of "supported", or "unsupported" in this context?有谁知道在这种情况下“支持”或“不支持”是什么意思? Is it just referring to UI support in rancher?它只是指牧场主中的UI支持吗?
  2. Is rancher using a different build of the banzai cloud operator that's scaled down and doesn't have all the features?牧场主是否使用了不同版本的万岁云运营商,该运营商已缩小规模且不具备所有功能?
  3. Can the "entry out of order" be caused by the fluentbit config or is that something on loki side? “乱序输入”可能是由 fluentbit 配置引起的,还是 loki 方面的问题?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM