configmap-loki.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {{- if .Values.loki.enabled }}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: loki-config
  6. namespace: {{ .Release.Namespace }}
  7. labels:
  8. app: loki
  9. data:
  10. loki-config.yaml: |
  11. auth_enabled: false
  12. common:
  13. compactor_grpc_address: localhost:3100
  14. path_prefix: /loki
  15. ingester:
  16. chunk_idle_period: 3m
  17. chunk_retain_period: 1m
  18. chunk_encoding: gzip
  19. max_chunk_age: 2h
  20. lifecycler:
  21. ring:
  22. kvstore:
  23. store: inmemory
  24. replication_factor: 1
  25. limits_config:
  26. enforce_metric_name: false
  27. reject_old_samples: true
  28. reject_old_samples_max_age: 168h
  29. ingestion_rate_mb: 512
  30. ingestion_burst_size_mb: 1024
  31. max_query_parallelism: 24
  32. split_queries_by_interval: 1h
  33. query_scheduler:
  34. # Increase queue budget to avoid 429 under bursty dashboard fan-out.
  35. max_outstanding_requests_per_tenant: 1500
  36. frontend:
  37. max_outstanding_per_tenant: 4096
  38. scheduler_worker_concurrency: 8
  39. query_range:
  40. align_queries_with_step: true
  41. schema_config:
  42. configs:
  43. - from: 2020-10-24
  44. store: boltdb-shipper
  45. object_store: filesystem
  46. schema: v11
  47. index:
  48. prefix: index_
  49. period: 24h
  50. server:
  51. http_listen_port: 3100
  52. log_level: info
  53. storage_config:
  54. boltdb_shipper:
  55. active_index_directory: /loki/boltdb-shipper-active
  56. shared_store: filesystem
  57. cache_location: /loki/boltdb-shipper-cache
  58. filesystem:
  59. directory: {{ .Values.loki.storage.filesystem.directory }}
  60. chunk_store_config:
  61. max_look_back_period: 0s
  62. table_manager:
  63. retention_deletes_enabled: {{ .Values.loki.retention.enabled }}
  64. retention_period: {{ mul .Values.loki.retention.days 24 }}h
  65. compactor:
  66. working_directory: /loki/compactor
  67. {{- end }}