configmap-loki.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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: 256
  30. ingestion_burst_size_mb: 512
  31. schema_config:
  32. configs:
  33. - from: 2020-10-24
  34. store: boltdb-shipper
  35. object_store: filesystem
  36. schema: v11
  37. index:
  38. prefix: index_
  39. period: 24h
  40. server:
  41. http_listen_port: 3100
  42. log_level: info
  43. storage_config:
  44. boltdb_shipper:
  45. active_index_directory: /loki/boltdb-shipper-active
  46. shared_store: filesystem
  47. cache_location: /loki/boltdb-shipper-cache
  48. filesystem:
  49. directory: {{ .Values.loki.storage.filesystem.directory }}
  50. chunk_store_config:
  51. max_look_back_period: 0s
  52. table_manager:
  53. retention_deletes_enabled: {{ .Values.loki.retention.enabled }}
  54. retention_period: {{ mul .Values.loki.retention.days 24 }}h
  55. compactor:
  56. working_directory: /loki/compactor
  57. {{- end }}