Grafana仅显示单一日志级别logs问题排查(Grafana+Loki分布式Helm Chart)
问题:Grafana Explore中日志级别标签仅显示为logs,而非Info/Error/Warning
我已部署VictoriaMetrics与Promtail,将日志转发至Loki,且已成功收集全部日志。但在Grafana Explore界面中,日志级别标签仅显示为logs,而非预期的Info/Error/Warning,不过查看日志内容时会自动进行颜色区分。
Grafana Explore界面情况
界面中的日志级别筛选标签统一显示为“logs”,无法按具体日志级别(Info/Error/Warning)进行筛选,但日志内容会根据级别自动着色。
Loki配置
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"
Promtail配置
extraArgs: - -client.external-labels=cluster=dev-03 config: lokiAddress: http://my-loki-host.com/loki/api/v1/push
内容的提问来源于stack exchange,提问作者Amir Lev
相关产品推荐
相关产品推荐

