retention_delete_delay: 2h是 Compactor 删除 marked chunks 的延迟时间,这里是出于相关引用的考虑。 retention_delete_worker_count: 150是 Compactor 删除chunk时,用到的线程数量 period: 24h这个值只能是24h,只有在为24h时,数据过期策略才会工作 retention_period是对全局生效的,retention_stream是对指定的Stream生效,...
shared_store:filesystem retention_enabled:true#启动日志删除 compaction_interval:10m #compactor每隔10分钟运行一次 retention_delete_delay:2h #在compactor运行2小时后删除 retention_delete_worker_count:150#用150个worker删除chunks analytics:reporting_enabled:false#关闭向loki团队发送此配置文件 promtail配置文件 pro...
10m # 压缩间隔 retention_enabled: true # 持久化开启 retention_delete_delay: 5m # 过期后多久删除 retention_delete_worker_count: 150 # 过期删除协程数目schema_config: configs: - from: "2020-07-31" index: period: 24h prefix: loki_index_ object_store: filesystem # 持久化方式:本地文件 schema...
compaction_interval: 10m # 压缩间隔 retention_enabled: true # 持久化开启 retention_delete_delay: 5m # 过期后多久删除 retention_delete_worker_count: 150 # 过期删除协程数目 schema_config: configs: - from: "2020-07-31" index: period: 24h prefix: loki_index_ object_store: filesystem # 持久化...
table_manager: retention_deletes_enabled: true # 开启表管理 retention_period: 672h compactor: working_directory: /tmp/loki/retention shared_store: filesystem compaction_interval: 10m retention_enabled: true retention_delete_delay: 10s retention_delete_worker_count: 150 c. 使用API删除日志流 你可以...
10m # 压缩间隔retention_enabled:true# 持久化开启retention_delete_delay:5m # 过期后多久删除retention_delete_worker_count:150# 过期删除协程数目schema_config:configs:-from:"2023-10-23"index:period:24hprefix:loki_index_object_store:filesystem # 持久化方式:本地文件schema:v11store:boltdb-shipperstorage...
retention_enabled: true # 持久化开启 retention_delete_delay: 2h # 过期后多久删除 retention_delete_worker_count: 150 # 过期删除协程数目 schema_config: configs: - from: 2020-10-24 store: boltdb-shipper object_store: filesystem schema: v11 ...
/data/loki/compactor #compactor运行状态保存目录shared_store: filesystemretention_enabled: true #启动日志删除compaction_interval: 10m #compactor每隔10分钟运行一次retention_delete_delay: 2h #在compactor运行2小时后删除retention_delete_worker_count: 150 #用150个worker删除chunksanalytics:reporting_enabled: false...
falsetls_insecure_skip_verify: trueschema_config:configs:- from: "2020-10-24"index:period: 24hprefix: index_object_store: filesystemschema: v11store: boltdb-shipperchunks:period: 168hrow_shards: 32table_manager:retention_deletes_enabled: falseretention_period: 0sthroughput_updates_disabled: false...
boltdb:42directory: /tmp/loki/index4344filesystem:45directory: /tmp/loki/chunks4647limits_config:48enforce_metric_name: false49reject_old_samples: true50reject_old_samples_max_age: 168h5152ingestion_rate_mb: 155354chunk_store_config:55max_look_back_period: 0s5657table_manager:58retention_delete...