# ============================================================================= # Loki 配置文件 # ============================================================================= auth_enabled: false server: http_listen_port: 3100 grpc_listen_port: 9096 common: path_prefix: /loki storage: filesystem: chunks_directory: /loki/chunks rules_directory: /loki/rules replication_factor: 1 ring: instance_addr: 127.0.0.1 kvstore: store: inmemory query_range: results_cache: cache: embedded_cache: enabled: true max_size_mb: 100 schema_config: configs: - from: 2020-10-24 store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ period: 24h ruler: alertmanager_url: http://alertmanager:9093 # 限制配置 limits_config: reject_old_samples: true reject_old_samples_max_age: 168h ingestion_rate_mb: 10 ingestion_burst_size_mb: 20 per_stream_rate_limit: 3MB per_stream_rate_limit_burst: 15MB # 前端配置 frontend: max_outstanding_per_tenant: 2048 compress_responses: true # 查询调度器 query_scheduler: max_outstanding_requests_per_tenant: 2048 # 索引网关 index_gateway: mode: simple # 分析器 analytics: reporting_enabled: false