Skip to content

Commit c98cfc8

Browse files
committed
fix(loki): redeploy loki with refactored config
1 parent c6e9cf9 commit c98cfc8

1 file changed

Lines changed: 68 additions & 147 deletions

File tree

kubernetes/apps/observability/loki/app/helmrelease.yaml

Lines changed: 68 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -26,75 +26,57 @@ spec:
2626
strategy: rollback
2727
retries: 3
2828
dependsOn:
29-
- name: local-path-provisioner
30-
namespace: storage
29+
# - name: local-path-provisioner
30+
# namespace: storage
3131
- name: rook-ceph-cluster
3232
namespace: rook-ceph
33-
valuesFrom:
34-
- targetPath: loki.structuredConfig.common.storage.s3.bucketnames
35-
kind: ConfigMap
36-
name: loki-bucket
37-
valuesKey: BUCKET_NAME
38-
- targetPath: loki.structuredConfig.common.storage.s3.endpoint
39-
kind: ConfigMap
40-
name: loki-bucket
41-
valuesKey: BUCKET_HOST
42-
- targetPath: loki.structuredConfig.common.storage.s3.access_key_id
43-
kind: Secret
44-
name: loki-bucket
45-
valuesKey: AWS_ACCESS_KEY_ID
46-
- targetPath: loki.structuredConfig.common.storage.s3.secret_access_key
47-
kind: Secret
48-
name: loki-bucket
49-
valuesKey: AWS_SECRET_ACCESS_KEY
33+
# valuesFrom:
34+
# - targetPath: loki.structuredConfig.common.storage.s3.bucketnames
35+
# kind: ConfigMap
36+
# name: loki-bucket
37+
# valuesKey: BUCKET_NAME
38+
# - targetPath: loki.structuredConfig.common.storage.s3.endpoint
39+
# kind: ConfigMap
40+
# name: loki-bucket
41+
# valuesKey: BUCKET_HOST
42+
# - targetPath: loki.structuredConfig.common.storage.s3.access_key_id
43+
# kind: Secret
44+
# name: loki-bucket
45+
# valuesKey: AWS_ACCESS_KEY_ID
46+
# - targetPath: loki.structuredConfig.common.storage.s3.secret_access_key
47+
# kind: Secret
48+
# name: loki-bucket
49+
# valuesKey: AWS_SECRET_ACCESS_KEY
5050
values:
51+
deploymentMode: SingleBinary
5152
loki:
53+
auth_enabled: false
54+
analytics:
55+
reporting_enabled: false
56+
server:
57+
log_level: info
58+
commonConfig:
59+
replication_factor: 1
60+
compactor:
61+
working_directory: /var/loki/compactor/retention
62+
delete_request_store: filesystem
63+
retention_enabled: true
64+
ingester:
65+
chunk_encoding: snappy
66+
limits_config:
67+
retention_period: 14d
68+
storage:
69+
type: filesystem
70+
schemaConfig:
71+
configs:
72+
- from: "2024-04-01" # quote
73+
store: tsdb
74+
object_store: filesystem
75+
schema: v13
76+
index:
77+
prefix: loki_index_
78+
period: 24h
5279
structuredConfig:
53-
auth_enabled: false
54-
server:
55-
log_level: info
56-
http_listen_port: 3100
57-
grpc_listen_port: 9095
58-
memberlist:
59-
join_members: ["loki-memberlist"]
60-
limits_config:
61-
retention_period: 14d
62-
enforce_metric_name: false
63-
reject_old_samples: true
64-
reject_old_samples_max_age: 168h
65-
max_cache_freshness_per_query: 10m
66-
split_queries_by_interval: 1h
67-
max_query_parallelism: 100
68-
ingestion_rate_mb: 50
69-
ingestion_burst_size_mb: 1000
70-
per_stream_rate_limit: 5MB
71-
per_stream_rate_limit_burst: 20MB
72-
shard_streams:
73-
enabled: true
74-
query_scheduler:
75-
max_outstanding_requests_per_tenant: 4096
76-
frontend:
77-
max_outstanding_per_tenant: 4096
78-
schema_config:
79-
configs:
80-
- from: "2022-01-11" # quote
81-
store: boltdb-shipper
82-
object_store: s3
83-
schema: v12
84-
index:
85-
prefix: loki_index_
86-
period: 24h
87-
common:
88-
path_prefix: /var/loki
89-
replication_factor: 2
90-
storage:
91-
s3:
92-
s3: null
93-
insecure: true
94-
s3forcepathstyle: true
95-
ring:
96-
kvstore:
97-
store: memberlist
9880
ruler:
9981
enable_api: true
10082
enable_alertmanager_v2: true
@@ -103,92 +85,31 @@ spec:
10385
type: local
10486
local:
10587
directory: /rules
106-
rule_path: /tmp/scratch
107-
ring:
108-
kvstore:
109-
store: memberlist
110-
distributor:
111-
ring:
112-
kvstore:
113-
store: memberlist
114-
compactor:
115-
working_directory: /var/loki/boltdb-shipper-compactor
116-
shared_store: s3
117-
compaction_interval: 10m
118-
retention_enabled: true
119-
retention_delete_delay: 2h
120-
retention_delete_worker_count: 150
121-
ingester:
122-
max_chunk_age: 1h
123-
lifecycler:
124-
ring:
125-
kvstore:
126-
store: memberlist
127-
analytics:
128-
reporting_enabled: false
129-
gateway:
130-
replicas: 2
131-
image:
132-
registry: ghcr.io
133-
ingress:
88+
rule_path: /rules/fake
89+
singleBinary:
90+
replicas: 1
91+
persistence:
13492
enabled: true
135-
ingressClassName: internal
136-
hosts:
137-
- host: &host loki.parsec.sh
138-
paths:
139-
- path: /
140-
pathType: Prefix
141-
tls:
142-
- hosts:
143-
- *host
93+
storageClass: ceph-block
94+
size: 50Gi
95+
gateway:
96+
replicas: 0
97+
backend:
98+
replicas: 0
14499
read:
145-
replicas: 2
146-
persistence:
147-
storageClass: local-hostpath
148-
extraVolumeMounts:
149-
- name: rules
150-
mountPath: /rules
151-
extraVolumes:
152-
- name: rules
153-
emptyDir: {}
100+
replicas: 0
154101
write:
155-
replicas: 2
156-
persistence:
157-
storageClass: local-hostpath
158-
backend:
159-
replicas: 2
160-
persistence:
161-
storageClass: local-hostpath
162-
extraVolumeMounts:
163-
- name: rules
164-
mountPath: /rules/fake
165-
- name: scratch
166-
mountPath: /tmp/scratch
167-
extraVolumes:
168-
- name: rules
169-
configMap:
170-
name: loki-alerting-rules
171-
- name: scratch
172-
emptyDir: {}
173-
monitoring:
174-
dashboards:
175-
enabled: true
176-
annotations:
177-
grafana_folder: Loki
178-
labels:
179-
grafana_dashboard: "true"
180-
serviceMonitor:
181-
enabled: true
182-
metricsInstance:
183-
enabled: true
184-
selfMonitoring:
185-
enabled: false
186-
grafanaAgent:
187-
installOperator: false
188-
lokiCanary:
189-
enabled: false
102+
replicas: 0
103+
chunksCache:
104+
enabled: false
105+
resultsCache:
106+
enabled: false
107+
lokiCanary:
108+
enabled: false
109+
test:
110+
enabled: false
190111
sidecar:
191112
image:
192113
repository: ghcr.io/kiwigrid/k8s-sidecar
193-
test:
194-
enabled: false
114+
rules:
115+
searchNamespace: ALL

0 commit comments

Comments
 (0)