Skip to content

Commit cc82071

Browse files
committed
hot tier , nginx parser
1 parent 2e09dbe commit cc82071

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
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: 26 additions & 9 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
@@ -379,7 +381,15 @@ fluent-bit:
379381
380382
# [INPUT]
381383
# Name tail
382-
# Path /var/log/containers/{NGINX_DEPLOYMENT_NAME}-*.log
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
383393
# Parser nginx_error
384394
# Tag kube.*
385395
# Mem_Buf_Limit 5MB
@@ -436,12 +446,19 @@ fluent-bit:
436446
Time_Key time
437447
Time_Format %Y-%m-%dT%H:%M:%S.%L
438448
439-
[PARSER]
440-
Name nginx_error
441-
Format regex
442-
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+)"$
443-
Time_Key timestamp
444-
Time_Format %Y-%m-%dT%H:%M:%S.%LZ
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
445462
446463
# The config volume is mounted by default, either to the existingConfigMap value, or the default of "fluent-bit.fullname"
447464
volumeMounts:

0 commit comments

Comments
 (0)