| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # ============================================================
- # Loki 配置 - 日志聚合存储
- # ============================================================
-
- auth_enabled: false
-
- server:
- http_listen_port: 3100
- grpc_listen_port: 9096
- log_level: info
-
- common:
- path_prefix: /loki
- storage:
- filesystem:
- chunks_directory: /loki/chunks
- rules_directory: /loki/rules
- replication_factor: 1
- ring:
- kvstore:
- store: inmemory
-
- schema_config:
- configs:
- - from: "2024-01-01"
- store: tsdb
- object_store: filesystem
- schema: v13
- index:
- prefix: index_
- period: 24h
-
- storage_config:
- tsdb_shipper:
- active_index_directory: /loki/tsdb-index
- cache_location: /loki/tsdb-cache
- cache_ttl: 24h
-
- limits_config:
- retention_period: 30d
- max_query_series: 500
- max_query_parallelism: 4
- max_entries_limit_per_query: 5000
- ingestion_rate_mb: 10
- ingestion_burst_size_mb: 20
- per_stream_rate_limit: 5MB
- per_stream_rate_limit_burst: 15MB
-
- chunk_store_config:
- max_look_back_period: 0s
-
- table_manager:
- retention_deletes_enabled: true
- retention_period: 720h # 30 days
-
- compactor:
- working_directory: /loki/compactor
- compaction_interval: 10m
- retention_enabled: true
- retention_delete_delay: 2h
- delete_request_store: filesystem
-
- analytics:
- reporting_enabled: false
|