[英]Grafana shows only one log level (logs) (grafana + loki-distributed helm chart)
I deployed victoria-metrics with promtail to pass logs to Loki.我使用 promtail 部署了 victoria-metrics 以将日志传递给 Loki。 I installed Loki and i get all the logs.
我安装了 Loki,我得到了所有的日志。 the only problem is that the log label shown as logs,and not as Info/error/warning.
唯一的问题是日志 label 显示为日志,而不是信息/错误/警告。 It is colorize them though when I look at the log itself.
当我查看日志本身时,它会为它们着色。
the grafana explore ui: grafana探索用户界面:
enter image description here在此处输入图像描述
the loki configuration:洛基配置:
gateway:
ingress:
enabled: true
ingressClassName: internal-nginx
annotations:
external-dns.alpha.kubernetes.io/hostname: loki.myhostname.com
hosts:
- host: loki.myhostname.com
paths:
- path: /
pathType: Prefix
tls: []
read:
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 5
write:
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 5
loki:
structuredConfig:
ingester:
max_transfer_retries: 0
chunk_idle_period: 1h
chunk_target_size: 1536000
max_chunk_age: 1h
storage_config:
aws:
s3: s3://eu-central-1
bucketnames: loki-centralized
boltdb_shipper:
shared_store: s3
schema_config:
configs:
- from: "2022-08-17"
store: boltdb-shipper
object_store: aws
schema: v11
index:
prefix: loki_index_
period: 24h
serviceAccount:
create: true
name: loki-sa
annotations:
eks.amazonaws.com/role-arn: "my-sa-role"
my promtail:我的提示:
extraArgs:
- -client.external-labels=cluster=dev-03
config:
lokiAddress: http://my-loki-host.com/loki/api/v1/push
I solved the problem.我解决了这个问题。 turns out it is Grafana version 9.x, at least for us it didn't work.
原来它是 Grafana 9.x 版,至少对我们来说它不起作用。 we downgrade to 8.3.x, the log labels are back to normal.
我们降级到 8.3.x,日志标签恢复正常。 now I see it as it should with the colors.
现在我看到它与 colors 一样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.