active_index_directory:/opt/app/loki/boltdb-shipper-active cache_location:/opt/app/loki/boltdb-shipper-cache cache_ttl:24h#Canbeincreasedforfasterperformanceoverlongerqueryperiods,usesmorediskspace shared_store:filesystem filesystem: directory:/opt/app/loki/chunks compactor: working_directory:/opt/app/...
chunk_target_size: 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m) max_tra...
active_index_directory: /data/loki/boltdb-shipper-active cache_location: /data/loki/boltdb-shipper-cache cache_ttl: 24h shared_store: filesystem filesystem: directory: /data/loki/chunks chunk_store_config: max_look_back_period: 0s table_manager: retention_deletes_enabled: true retention_period:...
active_index_directory: /data/loki/boltdb-shipper-active cache_location: /data/loki/boltdb-shipper-cache cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space shared_store: filesystem filesystem: directory: /data/loki/chunks compactor: working_d...
cache_location: /opt/app/loki/boltdb-shipper-cache cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space shared_store: filesystem filesystem: directory: /opt/app/loki/chunks compactor:
cache_ttl 1800 </filter> metadata插件有Cache的机制,大家根据自己集群的规模合理调整cache的容量和cache的过期时间。正常情况下,metadata插件会watch k8s api来更新cache,如果出现新部署的容器日志没有相关标签,那么你可能需要再等一会或者重启fluentd客户端可以解决 ...
filesystemschema:v11store:boltdb-shipperstorage_config:boltdb_shipper:active_index_directory:/data/loki/boltdb-shipper-activecache_location:/data/loki/boltdb-shipper-cachecache_ttl:24hshared_store:filesystemfilesystem:directory:/data/loki/chunkstable_manager:retention_deletes_enabled:trueretention_period:...
opt/app/loki/boltdb-shipper-cachecache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk spaceshared_store: filesystemfilesystem:directory: /opt/app/loki/chunkscompactor:working_directory: /opt/app/loki/boltdb-shipper-compactorshared_store: filesystem...
由于 Loki 使用和 Prometheus 类似的标签概念,所以如果你熟悉 Prometheus 那么将很容易上手,也可以直接和 Grafana 集成,只需要添加 Loki 数据源就可以开始查询日志数据了。 Loki 还提供了一个专门用于日志查询的LogQL查询语句,类似于PromQL,通过 LogQL 我们可以很容易查询到需要的日志,也可以很轻松获取监控指标。Loki ...
cache_location:/tmp/loki/boltdb-shipper-cache cache_ttl:24h # Can be increasedforfaster performance over longer query periods,uses more disk space shared_store:filesystem filesystem:directory:/tmp/loki/chunks compactor:working_directory:/tmp/loki/boltdb-shipper-compactor ...