智慧水务管理系统 - 精河县供水工程综合管理平台

loki-config.yml 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # ============================================================
  2. # Loki 配置 - 日志聚合存储
  3. # ============================================================
  4. auth_enabled: false
  5. server:
  6. http_listen_port: 3100
  7. grpc_listen_port: 9096
  8. log_level: info
  9. common:
  10. path_prefix: /loki
  11. storage:
  12. filesystem:
  13. chunks_directory: /loki/chunks
  14. rules_directory: /loki/rules
  15. replication_factor: 1
  16. ring:
  17. kvstore:
  18. store: inmemory
  19. schema_config:
  20. configs:
  21. - from: "2024-01-01"
  22. store: tsdb
  23. object_store: filesystem
  24. schema: v13
  25. index:
  26. prefix: index_
  27. period: 24h
  28. storage_config:
  29. tsdb_shipper:
  30. active_index_directory: /loki/tsdb-index
  31. cache_location: /loki/tsdb-cache
  32. cache_ttl: 24h
  33. limits_config:
  34. retention_period: 30d
  35. max_query_series: 500
  36. max_query_parallelism: 4
  37. max_entries_limit_per_query: 5000
  38. ingestion_rate_mb: 10
  39. ingestion_burst_size_mb: 20
  40. per_stream_rate_limit: 5MB
  41. per_stream_rate_limit_burst: 15MB
  42. chunk_store_config:
  43. max_look_back_period: 0s
  44. table_manager:
  45. retention_deletes_enabled: true
  46. retention_period: 720h # 30 days
  47. compactor:
  48. working_directory: /loki/compactor
  49. compaction_interval: 10m
  50. retention_enabled: true
  51. retention_delete_delay: 2h
  52. delete_request_store: filesystem
  53. analytics:
  54. reporting_enabled: false