chunk_store_config: # max_look_back_period: 0s # 回看日志行的最大时间,只适用于即时日志,7天 max_look_back_period: 168h # 表的保留期配置 #table_manager: # retention_deletes_enabled: false # retention_period: 0s table_manager: # 日志保留周期开关,默认false retention_deletes_enabled: true...
table_manager:retention_deletes_enabled:trueretention_period:336h 超出这个保留时间的表数据将被自动清理,具体保留数据策略如下图所示: 那么保留的表数量公式为:number_of_tables_to_keep = floor(retention_period / table_period) + 1注意:Loki的保留数据时间最小单位是24小时,所以这个保留参数的配置应该为24小...
chunk_store_config: max_look_back_period: 0s table_manager: retention_deletes_enabled: false retention_period: 0s ruler: storage: type: local local: directory: /opt/app/loki/rules rule_path: /opt/app/loki/rules-temp alertmanager_url: http://localhost:9093 ring: kvstore: store: inmemory ...
table_manager: retention_deletes_enabled: true retention_period: 7d 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 创建ConfigMap: kubectl create configmap loki-config --from-file=loki-local-confi...
retention_deletes_enabled:true#日志保留周期开关,默认为falseretention_period: 168h#日志保留周期 loki节点 vim /opt/loki/docker-compose.yaml version:"3"networks: loki: services: loki: image: grafana/loki:2.3.0 restart: always environment:
retention_deletes_enabled: true # 注意是168的倍数:168 * 4 retention_period: 672h 1. 2. 3. 4. 5. 配置持久化 persistence: enabled: true accessModes: - ReadWriteOnce size: 100Gi annotations: {} existingClaim: loki-pvc 1. 2.
retention_deletes_enabled: true # 保留删除开启 retention_period: 72h # 超过72h的块数据将被删除 ruler: alertmanager_url: http://localhost:9093 promtail vim promtail/promtail-config.yaml server: http_listen_port:9080#云服务器需开放9080端口 ...
table_manager:retention_deletes_enabled: falseretention_period: 0s ruler:storage:type: locallocal:directory: /opt/app/loki/rulesrule_path: /opt/app/loki/rules-tempalertmanager_url: http://localhost:9093ring:kvstore:store: inmemoryenable_api: trueEOF ...
retention_deletes_enabled: true retention_period: 24h ruler: storage: type: local local: directory: /data/loki/rules rule_path: /data/loki/rules-temp alertmanager_url: http://localhost:9093 ring: kvstore: store: inmemory enable_api: true ...
loki log retention method 1 schema_config:configs:-from:2020-10-24store:boltdb-shipperobject_store:filesystemschema:v11index:prefix:index_period:24htable_manager:retention_deletes_enabled:trueretention_period:24h method 2 limits_config:retention_period:168hcompactor:working_directory:/data/retention...