Skip to content

Commit 7919716

Browse files
authored
helm: enable hot tier and Nginx parser (#1061)
1 parent d0f76ed commit 7919716

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

helm/templates/querier-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ spec:
5252
fieldPath: metadata.name
5353
- name: P_MODE
5454
value: "query"
55+
{{- if .Values.parseable.persistence.querier.enabled }}
56+
- name: P_HOT_TIER_DIR
57+
value: "/parseable/hot-tier"
58+
{{- end }}
5559
{{- range $key, $value := .Values.parseable.env }}
5660
- name: {{ $key }}
5761
value: {{ tpl $value $ | quote }}

helm/values.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parseable:
55
pullPolicy: Always
66
## object store can be local-store, s3-store, blob-store or gcs-store.
77
store: local-store
8-
## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors)
8+
## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors + hot tier)
99
## Please note that highAvailability is not supported in local mode
1010
highAvailability:
1111
enabled: false
@@ -66,11 +66,13 @@ parseable:
6666
storageClass: ""
6767
accessMode: ReadWriteOnce
6868
size: 5Gi
69+
## enabling the disk on querier adds the hot-tier.
70+
## local-store is not supported on hot-tier.
6971
querier:
7072
enabled: false
7173
storageClass: ""
7274
accessMode: ReadWriteOnce
73-
size: 5Gi
75+
size: 20Gi
7476
## comment out the secrets depending upon deployment option
7577
## localModeSecret if store is set to local
7678
## blobModeSecret if store is set to blob-store
@@ -377,6 +379,22 @@ fluent-bit:
377379
Mem_Buf_Limit 5MB
378380
Skip_Long_Lines On
379381
382+
# [INPUT]
383+
# Name tail
384+
# Path /var/log/containers/{{ NGINX_POD_NAME }}-*.log
385+
# Parser nginx_access
386+
# Tag kube.*
387+
# Mem_Buf_Limit 5MB
388+
# Skip_Long_Lines On
389+
390+
# [INPUT]
391+
# Name tail
392+
# Path /var/log/containers/{{ NGINX_POD_NAME }}-*.log
393+
# Parser nginx_error
394+
# Tag kube.*
395+
# Mem_Buf_Limit 5MB
396+
# Skip_Long_Lines On
397+
380398
[INPUT]
381399
name kubernetes_events
382400
tag k8s_events
@@ -427,6 +445,21 @@ fluent-bit:
427445
Time_Keep Off
428446
Time_Key time
429447
Time_Format %Y-%m-%dT%H:%M:%S.%L
448+
449+
# [PARSER]
450+
# Name nginx_error
451+
# Format regex
452+
# Regex ^(?<timestamp>\S+Z) stderr F (?<error_timestamp>\S+ \S+) \[(?<log_level>\S+)\] (?<process_id>\d+#\d+): \*(?<request_id>\d+) (?<error_message>.*?) client: (?<client_ip>\S+), server: (?<server_name>\S+), request: "(?<request_method>\S+) (?<request_path>\S+) HTTP/\S+", upstream: "(?<upstream_url>[^"]+)", host: "(?<host>\S+)"$
453+
# Time_Key timestamp
454+
# Time_Format %Y/%m/%d %H:%M:%S
455+
456+
# [PARSER]
457+
# Name nginx_access
458+
# Format regex
459+
# Regex (?<remote_addr>[^ ]*) - (?<remote_user>[^ ]*) \[(?<timestamp>[^\]]*)\] "(?<method>\S+)(?: +(?<request>[^\"]*?)(?: +\S*)?)?" (?<status>[^ ]*) (?<body_bytes_sent>[^ ]*) "(?<http_referer>[^\"]*)" "(?<http_user_agent>[^\"]*)" (?<request_length>[^ ]*) (?<request_time>[^ ]*) \[(?<proxy_upstream_name>[^ ]*)\] \[(?<proxy_alternative_upstream_name>[^ ]*)\] (?<upstream_addr>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_response_length>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_response_time>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<upstream_status>[^,]*),?(?:[^,]*),?(?:[^ ]*) (?<req_id>[^ ]*)
460+
# Time_Key timestamp
461+
# Time_Format %d/%b/%Y:%H:%M:%S %z
462+
430463
# The config volume is mounted by default, either to the existingConfigMap value, or the default of "fluent-bit.fullname"
431464
volumeMounts:
432465
- name: config

0 commit comments

Comments
 (0)