grafana / loki数据源中缺少日志

时间:2019-08-01 06:03:26

标签: logging datasource grafana fluentd loki

我正在将日志从Fluentd转发到Loki数据源(大块和索引都保留在内存中)。在Loki重新启动时,尽管内存中有可用的块,但通过Grafana UI访问时,某些日志丢失了。

我停止了Loki,并在不到一分钟的时间内重新启动。令人惊讶的是,过去3到4个小时的日志丢失了。

我的配置文件

auth_enabled: false

server:
  http_listen_port: XXXX

ingester:
  lifecycler:
    address: x.x.x.x
    ring:
      kvstore:
        store: inmemory
      replication_factor: 1
  chunk_idle_period: 15m

schema_config:
  configs:
    - from: 2018-04-15
      store: boltdb
      object_store: filesystem
      schema: v9
      index:
        prefix: index_
        period: 360h

storage_config:
  boltdb:
    directory: <directory path where indexes stored>

  filesystem:
    directory: <directory path where chunks stored>

limits_config:
  enforce_metric_name: false
  reject_old_samples: true
  reject_old_samples_max_age: 360h

chunk_store_config:
  max_look_back_period: 360h

table_manager:
  chunk_tables_provisioning:
    inactive_read_throughput: 0
    inactive_write_throughput: 0
    provisioned_read_throughput: 0
    provisioned_write_throughput: 0
  index_tables_provisioning:
    inactive_read_throughput: 0
    inactive_write_throughput: 0
    provisioned_read_throughput: 0
    provisioned_write_throughput: 0
  retention_deletes_enabled: true
  retention_period: 360h

我应该使用Grafana UI获取内存中可用块的日志。

0 个答案:

没有答案