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 # 持久化...
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...
compaction_interval: 10m0s retention_enabled: true retention_delete_delay: 2h0m0s retention_delete_worker_count: 150 delete_request_cancel_period: 24h0m0s max_compaction_parallelism: 2 ## compactor_ring: frontend_worker: match_max_concurrent: true parallelism: 10 dns_lookup_duration: 5s ## run...
retention_delete_delay: 5m retention_delete_worker_count: 150 limits_config: retention_period: 20d ingestion_rate_mb: 100 ingestion_burst_size_mb: 200 per_stream_rate_limit: 30MB per_stream_rate_limit_burst: 60MB reject_old_samples: true ...
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 ...
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删除日志流 你可以...
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 # 持久化方式:本地文件 ...
retention_delete_delay: 2h retention_delete_worker_count: 150 schema_config: configs: - from: "2023-01-03" index: period: 24h prefix: index_ object_store: s3 schema: v12 store: boltdb-shipper storage_config: boltdb_shipper: active_index_directory: /data/index ...
retention_enabled: true retention_delete_delay: 2h retention_delete_worker_count: 150 ruler: storage: type: local local: directory: /etc/loki/rules ring: kvstore: store: memberlist rule_path: /tmp/loki/scratch alertmanager_url: https://alertmanager.xx ...