【问题标题】:"No logs found" in grafanagrafana 中的“未找到日志”
【发布时间】:2022-06-18 01:05:51
【问题描述】:

我安装了 Loki、grafana 和 promtail 以及所有三个运行。在 http://localhost:9080/targets 上 Ready 为 True,但 Grafana 中不显示日志并显示在探索部分“未找到日志”

promtail-local-config-yaml:

server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /tmp/positions.yaml

clients:
  - url: http://localhost:3100/loki/api/v1/push

scrape_configs:
- job_name: system
  static_configs:
  - targets:
      - localhost
    labels:
      job: varlogs
      host: ward_workstation
      agent: promtail
      __path__: D:/LOGs/*log

loki-local-config.yaml:

auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

common:
  path_prefix: /tmp/loki
  storage:
    filesystem:
      chunks_directory: /tmp/loki/chunks
      rules_directory: /tmp/loki/rules
  replication_factor: 1
  ring:
    instance_addr: 127.0.0.1
    kvstore:
      store: inmemory

schema_config:
  configs:
    - from: 2020-10-24
      store: boltdb-shipper
      object_store: filesystem
      schema: v11
      index:
        prefix: index_
        period: 24h

ruler:
  alertmanager_url: http://localhost:9093

我该如何解决这个问题?

【问题讨论】:

    标签: loki promtail


    【解决方案1】:

    遇到同样的问题,如果您解决了这个问题,我真的很感兴趣?

    谢谢!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-16
      • 2021-09-09
      • 2020-10-24
      • 2012-08-15
      • 2018-01-27
      • 1970-01-01
      • 2022-07-05
      • 2021-06-09
      相关资源
      最近更新 更多