configmap-loki.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. ingester:
  13. chunk_idle_period: 3m
  14. chunk_retain_period: 1m
  15. chunk_encoding: gzip
  16. max_chunk_age: 2h
  17. lifecycler:
  18. ring:
  19. kvstore:
  20. store: inmemory
  21. replication_factor: 1
  22. limits_config:
  23. enforce_metric_name: false
  24. reject_old_samples: true
  25. reject_old_samples_max_age: 168h
  26. ingestion_rate_mb: 256
  27. ingestion_burst_size_mb: 512
  28. schema_config:
  29. configs:
  30. - from: 2020-10-24
  31. store: boltdb-shipper
  32. object_store: filesystem
  33. schema: v11
  34. index:
  35. prefix: index_
  36. period: 24h
  37. server:
  38. http_listen_port: 3100
  39. log_level: info
  40. storage_config:
  41. boltdb_shipper:
  42. active_index_directory: /loki/boltdb-shipper-active
  43. shared_store: filesystem
  44. cache_location: /loki/boltdb-shipper-cache
  45. filesystem:
  46. directory: {{ .Values.loki.storage.filesystem.directory }}
  47. chunk_store_config:
  48. max_look_back_period: 0s
  49. table_manager:
  50. retention_deletes_enabled: {{ .Values.loki.retention.enabled }}
  51. retention_period: {{ mul .Values.loki.retention.days 24 }}h
  52. {{- end }}