Created
February 1, 2025 21:53
-
-
Save mhaligowski/ba4dd2b7ebbde3d084478630f98d2b02 to your computer and use it in GitHub Desktop.
helm upgrade --install --namespace loki --create-namespace loki grafana/loki
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: template: loki/templates/write/statefulset-write.yaml:50:28: executing "loki/templates/write/statefulset-write.yaml" at <include "loki.configMapOrSecretContentHash" (dict "ctx" . "name" "/config.yaml")>: error calling include: template: loki/templates/_helpers.tpl:1131:8: executing "loki.configMapOrSecretContentHash" at <include (print .ctx.Template.BasePath .name) .ctx>: error calling include: template: loki/templates/config.yaml:19:7: executing "loki/templates/config.yaml" at <include "loki.calculatedConfig" .>: error calling include: template: loki/templates/_helpers.tpl:507:24: executing "loki.calculatedConfig" at <tpl .Values.loki.config .>: error calling tpl: error during tpl function execution for "{{- if .Values.enterprise.enabled}} | |
{{- tpl .Values.enterprise.config . }} | |
{{- else }} | |
auth_enabled: {{ .Values.loki.auth_enabled }} | |
{{- end }} | |
{{- with .Values.loki.server }} | |
server: | |
{{- toYaml . | nindent 2}} | |
{{- end}} | |
pattern_ingester: | |
enabled: {{ .Values.loki.pattern_ingester.enabled }} | |
memberlist: | |
{{- if .Values.loki.memberlistConfig }} | |
{{- toYaml .Values.loki.memberlistConfig | nindent 2 }} | |
{{- else }} | |
{{- if .Values.loki.extraMemberlistConfig}} | |
{{- toYaml .Values.loki.extraMemberlistConfig | nindent 2}} | |
{{- end }} | |
join_members: | |
- {{ include \"loki.memberlist\" . }} | |
{{- with .Values.migrate.fromDistributed }} | |
{{- if .enabled }} | |
- {{ .memberlistService }} | |
{{- end }} | |
{{- end }} | |
{{- end }} | |
{{- with .Values.loki.ingester }} | |
ingester: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- if .Values.loki.commonConfig}} | |
common: | |
{{- toYaml .Values.loki.commonConfig | nindent 2}} | |
storage: | |
{{- include \"loki.commonStorageConfig\" . | nindent 4}} | |
{{- end}} | |
{{- with .Values.loki.limits_config }} | |
limits_config: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
runtime_config: | |
file: /etc/loki/runtime-config/runtime-config.yaml | |
{{- with .Values.chunksCache }} | |
{{- if .enabled }} | |
chunk_store_config: | |
chunk_cache_config: | |
default_validity: {{ .defaultValidity }} | |
background: | |
writeback_goroutines: {{ .writebackParallelism }} | |
writeback_buffer: {{ .writebackBuffer }} | |
writeback_size_limit: {{ .writebackSizeLimit }} | |
memcached: | |
batch_size: {{ .batchSize }} | |
parallelism: {{ .parallelism }} | |
memcached_client: | |
addresses: dnssrvnoa+_memcached-client._tcp.{{ template \"loki.fullname\" $ }}-chunks-cache.{{ $.Release.Namespace }}.svc | |
consistent_hash: true | |
timeout: {{ .timeout }} | |
max_idle_conns: 72 | |
{{- end }} | |
{{- end }} | |
{{- if .Values.loki.schemaConfig }} | |
schema_config: | |
{{- toYaml .Values.loki.schemaConfig | nindent 2}} | |
{{- end }} | |
{{- if .Values.loki.useTestSchema }} | |
schema_config: | |
{{- toYaml .Values.loki.testSchemaConfig | nindent 2}} | |
{{- end }} | |
{{- if .Values.ruler.enabled }} | |
{{ include \"loki.rulerConfig\" . }} | |
{{- end }} | |
{{- if or .Values.tableManager.retention_deletes_enabled .Values.tableManager.retention_period }} | |
table_manager: | |
retention_deletes_enabled: {{ .Values.tableManager.retention_deletes_enabled }} | |
retention_period: {{ .Values.tableManager.retention_period }} | |
{{- end }} | |
query_range: | |
align_queries_with_step: true | |
{{- with .Values.loki.query_range }} | |
{{- tpl (. | toYaml) $ | nindent 2 }} | |
{{- end }} | |
{{- if .Values.resultsCache.enabled }} | |
{{- with .Values.resultsCache }} | |
cache_results: true | |
results_cache: | |
cache: | |
default_validity: {{ .defaultValidity }} | |
background: | |
writeback_goroutines: {{ .writebackParallelism }} | |
writeback_buffer: {{ .writebackBuffer }} | |
writeback_size_limit: {{ .writebackSizeLimit }} | |
memcached_client: | |
consistent_hash: true | |
addresses: dnssrvnoa+_memcached-client._tcp.{{ template \"loki.fullname\" $ }}-results-cache.{{ $.Release.Namespace }}.svc | |
timeout: {{ .timeout }} | |
update_interval: 1m | |
{{- end }} | |
{{- end }} | |
{{- with .Values.loki.storage_config }} | |
storage_config: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.query_scheduler }} | |
query_scheduler: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.compactor }} | |
compactor: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.analytics }} | |
analytics: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.querier }} | |
querier: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.index_gateway }} | |
index_gateway: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.frontend }} | |
frontend: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.frontend_worker }} | |
frontend_worker: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.distributor }} | |
distributor: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
tracing: | |
enabled: {{ .Values.loki.tracing.enabled }} | |
{{- with .Values.loki.bloom_build }} | |
bloom_build: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
{{- with .Values.loki.bloom_gateway }} | |
bloom_gateway: | |
{{- tpl (. | toYaml) $ | nindent 4 }} | |
{{- end }} | |
": template: gotpl:40:6: executing "gotpl" at <include "loki.commonStorageConfig" .>: error calling include: template: loki/templates/_helpers.tpl:227:19: executing "loki.commonStorageConfig" at <$.Values.loki.storage.bucketNames.chunks>: nil pointer evaluating interface {}.chunks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki: | |
auth_enabled: false | |
schemaConfig: | |
configs: | |
- from: "2024-04-01" | |
store: tsdb | |
object_store: s3 | |
schema: v13 | |
index: | |
prefix: loki_index_ | |
period: 24h | |
ingester: | |
chunk_encoding: snappy | |
querier: | |
# Default is 4, if you have enough memory and CPU you can increase, reduce if OOMing | |
max_concurrent: 4 | |
pattern_ingester: | |
enabled: true | |
limits_config: | |
allow_structured_metadata: true | |
volume_enabled: true | |
enterprise: | |
enabled: false | |
deploymentMode: Distributed | |
ingester: | |
replicas: 3 # To ensure data durability with replication | |
querier: | |
replicas: 3 # Improve query performance via parallelism | |
maxUnavailable: 2 | |
queryFrontend: | |
replicas: 2 | |
maxUnavailable: 1 | |
queryScheduler: | |
replicas: 2 | |
distributor: | |
replicas: 3 | |
maxUnavailable: 2 | |
compactor: | |
replicas: 1 | |
indexGateway: | |
replicas: 2 | |
maxUnavailable: 1 | |
bloomPlanner: | |
replicas: 0 | |
bloomBuilder: | |
replicas: 0 | |
bloomGateway: | |
replicas: 0 | |
backend: | |
replicas: 0 | |
read: | |
replicas: 0 | |
write: | |
replicas: 0 | |
singleBinary: | |
replicas: 0 | |
# This exposes the Loki gateway so it can be written to and queried externaly | |
gateway: | |
service: | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment