2021-11-21 15:52:23 -05:00
|
|
|
image:
|
2021-12-03 07:02:44 -05:00
|
|
|
repository: tccr.io/truecharts/loki
|
2021-11-21 15:52:23 -05:00
|
|
|
pullPolicy: IfNotPresent
|
2023-05-03 07:24:18 -04:00
|
|
|
tag: 2.8.1@sha256:00c008b06432843b5ad3754d3da927080ec4e0a42f9a828cd6d8c74f338d96f1
|
2021-11-21 15:52:23 -05:00
|
|
|
|
|
|
|
controller:
|
|
|
|
# -- Set the controller type.
|
|
|
|
# Valid options are deployment, daemonset or statefulset
|
|
|
|
type: statefulset
|
|
|
|
# -- Number of desired pods
|
|
|
|
replicas: 1
|
|
|
|
# -- Set the controller upgrade strategy
|
|
|
|
# For Deployments, valid values are Recreate (default) and RollingUpdate.
|
|
|
|
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
|
|
|
|
# DaemonSets ignore this.
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
# -- Set deployment RollingUpdate max unavailable
|
|
|
|
unavailable: 1
|
|
|
|
# -- Set deployment RollingUpdate max surge
|
|
|
|
surge:
|
|
|
|
# -- Set statefulset RollingUpdate partition
|
|
|
|
partition:
|
|
|
|
# -- ReplicaSet revision history limit
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
|
|
|
args:
|
|
|
|
- "-config.file=/etc/loki/loki.yaml"
|
|
|
|
|
2022-06-07 13:41:19 -04:00
|
|
|
## TODO add alertinggroups support like this
|
|
|
|
# configmap:
|
|
|
|
# alerting:
|
|
|
|
# enabled: true
|
|
|
|
# data:
|
2022-06-30 04:48:43 -04:00
|
|
|
# '{{ include "tc.common.names.fullname" . }}-alerting-rules.yaml': |-
|
2022-06-07 13:41:19 -04:00
|
|
|
# {{- if gt (len .Values.alerting_groups) 0 }}
|
|
|
|
# groups:
|
|
|
|
# {{- toYaml .Values.alerting_groups | nindent 6 }}
|
|
|
|
# {{- end }}
|
|
|
|
|
|
|
|
secret:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
2022-06-14 02:51:11 -04:00
|
|
|
loki.yaml: |
|
2022-07-22 14:23:01 -04:00
|
|
|
{{- tpl (toYaml .Values.config) . | nindent 8 }}
|
2022-06-07 13:41:19 -04:00
|
|
|
|
2021-11-21 15:52:23 -05:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2021-11-28 04:26:31 -05:00
|
|
|
protocol: HTTP
|
2021-11-21 15:52:23 -05:00
|
|
|
targetPort: 3100
|
|
|
|
port: 3100
|
|
|
|
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
path: "/ready"
|
|
|
|
|
|
|
|
readiness:
|
|
|
|
path: "/ready"
|
|
|
|
|
|
|
|
startup:
|
|
|
|
path: "/ready"
|
|
|
|
|
|
|
|
config:
|
|
|
|
# existingSecret:
|
|
|
|
auth_enabled: false
|
|
|
|
ingester:
|
|
|
|
chunk_idle_period: 3m
|
|
|
|
chunk_block_size: 262144
|
|
|
|
chunk_retain_period: 1m
|
|
|
|
max_transfer_retries: 0
|
|
|
|
wal:
|
|
|
|
dir: /data/loki/wal
|
|
|
|
lifecycler:
|
|
|
|
ring:
|
|
|
|
kvstore:
|
|
|
|
store: inmemory
|
|
|
|
replication_factor: 1
|
|
|
|
|
|
|
|
## Different ring configs can be used. E.g. Consul
|
|
|
|
# ring:
|
|
|
|
# store: consul
|
|
|
|
# replication_factor: 1
|
|
|
|
# consul:
|
|
|
|
# host: "consul:8500"
|
|
|
|
# prefix: ""
|
|
|
|
# http_client_timeout: "20s"
|
|
|
|
# consistent_reads: true
|
|
|
|
limits_config:
|
|
|
|
enforce_metric_name: false
|
|
|
|
reject_old_samples: true
|
|
|
|
reject_old_samples_max_age: 168h
|
|
|
|
schema_config:
|
|
|
|
configs:
|
2022-07-22 14:23:01 -04:00
|
|
|
- from: 2020-10-24
|
|
|
|
store: boltdb-shipper
|
|
|
|
object_store: filesystem
|
|
|
|
schema: v11
|
|
|
|
index:
|
|
|
|
prefix: index_
|
|
|
|
period: 24h
|
2021-11-21 15:52:23 -05:00
|
|
|
server:
|
|
|
|
http_listen_port: 3100
|
|
|
|
storage_config:
|
|
|
|
boltdb_shipper:
|
|
|
|
active_index_directory: /data/loki/boltdb-shipper-active
|
|
|
|
cache_location: /data/loki/boltdb-shipper-cache
|
2022-07-26 06:03:10 -04:00
|
|
|
cache_ttl: 24h
|
2021-11-21 15:52:23 -05:00
|
|
|
shared_store: filesystem
|
|
|
|
filesystem:
|
|
|
|
directory: /data/loki/chunks
|
|
|
|
chunk_store_config:
|
|
|
|
max_look_back_period: 0s
|
|
|
|
table_manager:
|
|
|
|
retention_deletes_enabled: false
|
|
|
|
retention_period: 0s
|
|
|
|
compactor:
|
|
|
|
working_directory: /data/loki/boltdb-shipper-compactor
|
|
|
|
shared_store: filesystem
|
|
|
|
# Needed for Alerting: https://grafana.com/docs/loki/latest/alerting/
|
|
|
|
# This is just a simple example, for more details: https://grafana.com/docs/loki/latest/configuration/#ruler_config
|
|
|
|
# ruler:
|
|
|
|
# storage:
|
|
|
|
# type: local
|
|
|
|
# local:
|
|
|
|
# directory: /rules
|
|
|
|
# rule_path: /tmp/scratch
|
|
|
|
# alertmanager_url: http://alertmanager.svc.namespace:9093
|
|
|
|
# ring:
|
|
|
|
# kvstore:
|
|
|
|
# store: inmemory
|
|
|
|
# enable_api: true
|
|
|
|
|
|
|
|
# Specify Loki Alerting rules based on this documentation: https://grafana.com/docs/loki/latest/alerting/
|
|
|
|
# When specified, you also need to add a ruler config section above. An example is shown in the alerting docs.
|
|
|
|
alerting_groups: []
|
|
|
|
# - name: example
|
|
|
|
# rules:
|
|
|
|
# - alert: HighThroughputLogStreams
|
|
|
|
# expr: sum by(container) (rate({job=~"loki-dev/.*"}[1m])) > 1000
|
|
|
|
# for: 2m
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
type: secret
|
|
|
|
# -- Specify the name of the configmap object to be mounted
|
2022-06-07 13:41:19 -04:00
|
|
|
objectName: '{{ include "tc.common.names.fullname" . -}}-config'
|
2021-11-21 15:52:23 -05:00
|
|
|
# -- Where to mount the volume in the main container.
|
2021-12-18 14:25:00 -05:00
|
|
|
mountPath: "/etc/loki"
|
2021-11-21 15:52:23 -05:00
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/data"
|
|
|
|
|
|
|
|
promtail:
|
2021-11-24 13:17:25 -05:00
|
|
|
enabled: true
|
2022-08-08 17:25:02 -04:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|