Skip to content

Commit 97d006e

Browse files
authored
fix logs (#537)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a HelmRelease configuration for monitoring agents in Kubernetes. - Added a new section for `fluent-bit` with configurations for readiness probes, volumes, and log processing. - **Bug Fixes** - Enhanced monitoring capabilities with detailed configurations for log management and external integrations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 17fbda6 commit 97d006e

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

‎packages/apps/kubernetes/templates/helmreleases/monitoring-agents.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ spec:
4848
tenant: {{ .Release.Namespace }}
4949
remoteWrite:
5050
url: http://vminsert-shortterm.{{ $targetTenant }}.svc:8480/insert/0/prometheus
51-
5251
fluent-bit:
5352
readinessProbe:
5453
httpGet:

‎packages/system/monitoring-agents/values.yaml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,57 @@ vmagent:
305305
tenant: tenant-root
306306
remoteWrite:
307307
url: http://vminsert-shortterm.tenant-root.svc:8480/insert/0/prometheus
308+
309+
fluent-bit:
310+
readinessProbe:
311+
httpGet:
312+
path: /
313+
daemonSetVolumes:
314+
- name: varlog
315+
hostPath:
316+
path: /var/log
317+
- name: varlibdockercontainers
318+
hostPath:
319+
path: /var/lib/docker/containers
320+
daemonSetVolumeMounts:
321+
- name: varlog
322+
mountPath: /var/log
323+
- name: varlibdockercontainers
324+
mountPath: /var/lib/docker/containers
325+
readOnly: true
326+
config:
327+
outputs: |
328+
[OUTPUT]
329+
Name http
330+
Match kube.*
331+
Host vlogs-generic.tenant-root.svc
332+
port 9428
333+
compress gzip
334+
uri /insert/jsonline?_stream_fields=stream,kubernetes_pod_name,kubernetes_container_name,kubernetes_namespace_name&_msg_field=log&_time_field=date
335+
format json_lines
336+
json_date_format iso8601
337+
header AccountID 0
338+
header ProjectID 0
339+
filters: |
340+
[FILTER]
341+
Name kubernetes
342+
Match kube.*
343+
Merge_Log On
344+
Keep_Log On
345+
K8S-Logging.Parser On
346+
K8S-Logging.Exclude On
347+
[FILTER]
348+
Name nest
349+
Match *
350+
Wildcard pod_name
351+
Operation lift
352+
Nested_under kubernetes
353+
Add_prefix kubernetes_
354+
[FILTER]
355+
Name modify
356+
Match *
357+
Add tenant tenant-root
358+
[FILTER]
359+
Name modify
360+
Match *
361+
Add cluster root-cluster

0 commit comments

Comments
 (0)