Skip to content

Commit 003acf3

Browse files
olegbetobetsun
andauthored
fix loki 500 internal server error (#7704)
Signed-off-by: obetsun <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED Co-authored-by: obetsun <[email protected]>
1 parent ce7a97f commit 003acf3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

components/vector-kubearchive-log-collector/staging/stone-stg-rh01/vector-helm-values.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ customConfig:
103103
# Direct connection to Loki service (no gateway)
104104
endpoint: "http://vector-kubearchive-log-collector-loki.product-kubearchive-logging.svc.cluster.local:3100"
105105
encoding:
106-
codec: "json"
106+
codec: "text"
107+
except_fields: ["tmp"]
107108
auth:
108109
strategy: "basic"
109110
user: "${LOKI_USERNAME}"
@@ -112,10 +113,12 @@ customConfig:
112113
request:
113114
headers:
114115
X-Scope-OrgID: kubearchive
116+
timeout_secs: 60
115117
batch:
116-
max_bytes: 10485760
117-
timeout_secs: 300
118-
compression: "none"
118+
max_bytes: 2097152
119+
max_events: 1000
120+
timeout_secs: 10
121+
compression: "gzip"
119122
labels:
120123
job: "vector"
121124
pod_id: "{{`{{ pod_id }}`}}"
@@ -125,7 +128,7 @@ customConfig:
125128
buffer:
126129
type: "memory"
127130
max_events: 10000
128-
when_full: "block"
131+
when_full: "drop_newest"
129132
env:
130133
- name: LOKI_USERNAME
131134
valueFrom:

0 commit comments

Comments
 (0)