retention_stream:-selector:'{job="C"}'priority:1period:168h retention_enabled: true是必须写的,如果不写,Compactor 只会压缩表,不会启动保留策略。 retention_delete_delay: 2h是 Compactor 删除 marked chunks 的延迟时间,这里是出于相关引用的考虑。 retention_delete_worker_count: 150是 Compactor 删除chunk...
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 # 持久化...
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 # 持久化...
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 # 持久化方式:本地文件 schema:...
# retention_deletes_enabled: false # retention_period: 0s table_manager: # 日志保留周期开关,默认false retention_deletes_enabled: true # 日志保留周期 retention_period: 168h 1.5 启动loki [root@service-monitoring etc]# nohup /data/software/loki/loki-linux-amd64 -config.file=/data/software/loki...
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 ## runtime_config 这里没有...
compactor:working_directory:/data/retentioncompaction_interval:10mretention_enabled:trueretention_delete_delay:2hretention_delete_worker_count:150delete_request_store:gcsschema_config:configs:-from:"2020-07-31"index:period:24hprefix:index_object_store:gcsschema:v13store:tsdbstorage_config:tsdb_shipper:acti...
retention_enabled: true retention_delete_delay: 1h retention_delete_worker_count: 100 limits_config: enforce_metric_name: false reject_old_samples: true reject_old_samples_max_age: 24h retention_period: 24h chunk_store_config: max_look_back_period: 24h table_manager: retention_deletes_enabled:...
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 enable_api: true ...
table_manager:retention_deletes_enabled:trueretention_period:336h 超出这个保留时间的表数据将被自动清理,具体保留数据策略如下图所示: 那么保留的表数量公式为:number_of_tables_to_keep = floor(retention_period / table_period) + 1注意:Loki的保留数据时间最小单位是24小时,所以这个保留参数的配置应该为24小...