| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- {{- if .Values.loki.enabled }}
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: loki-config
- namespace: {{ .Release.Namespace }}
- labels:
- app: loki
- data:
- loki-config.yaml: |
- auth_enabled: false
-
- ingester:
- chunk_idle_period: 3m
- chunk_retain_period: 1m
- chunk_encoding: gzip
- max_chunk_age: 2h
- lifecycler:
- ring:
- kvstore:
- store: inmemory
- replication_factor: 1
-
- limits_config:
- enforce_metric_name: false
- reject_old_samples: true
- reject_old_samples_max_age: 168h
- ingestion_rate_mb: 256
- ingestion_burst_size_mb: 512
-
- schema_config:
- configs:
- - from: 2020-10-24
- store: boltdb-shipper
- object_store: filesystem
- schema: v11
- index:
- prefix: index_
- period: 24h
-
- server:
- http_listen_port: 3100
- log_level: info
-
- storage_config:
- boltdb_shipper:
- active_index_directory: /loki/boltdb-shipper-active
- shared_store: filesystem
- cache_location: /loki/boltdb-shipper-cache
- filesystem:
- directory: {{ .Values.loki.storage.filesystem.directory }}
-
- chunk_store_config:
- max_look_back_period: 0s
-
- table_manager:
- retention_deletes_enabled: {{ .Values.loki.retention.enabled }}
- retention_period: {{ mul .Values.loki.retention.days 24 }}h
- {{- end }}
|