From b8033dad4e7ecc4979f956c8fba7b37a47232743 Mon Sep 17 00:00:00 2001 From: JumasJM <108924588+JumasJM@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:57:31 +0200 Subject: [PATCH] [frinx-machine-monitoring] Update promtail (#420) Signed-off-by: JumasJM --- charts/frinx-machine-monitoring/Chart.yaml | 9 ++++++++- charts/frinx-machine-monitoring/values.yaml | 15 ++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/charts/frinx-machine-monitoring/Chart.yaml b/charts/frinx-machine-monitoring/Chart.yaml index 69c7236e..c14e818c 100644 --- a/charts/frinx-machine-monitoring/Chart.yaml +++ b/charts/frinx-machine-monitoring/Chart.yaml @@ -3,7 +3,7 @@ name: frinx-machine-monitoring description: A Helm chart for Kubernetes monitoring icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4 type: application -version: 0.1.0 +version: 0.1.1 appVersion: "1.16.0" maintainers: - name: FRINX @@ -24,3 +24,10 @@ dependencies: repository: https://grafana.github.io/helm-charts version: 6.15.5 condition: loki.enabled +annotations: + artifacthub.io/changes: | + - kind: changed + description: Update promtail configuration + links: + - name: GitHub PR + url: https://github.com/FRINXio/helm-charts/pull/420 diff --git a/charts/frinx-machine-monitoring/values.yaml b/charts/frinx-machine-monitoring/values.yaml index dcdd9203..2d4cf6bd 100644 --- a/charts/frinx-machine-monitoring/values.yaml +++ b/charts/frinx-machine-monitoring/values.yaml @@ -86,7 +86,20 @@ promtail: - url: http://loki:3100/loki/api/v1/push snippets: pipelineStages: - - cri: {} + - match: + selector: '{container="uniconfig"}' + stages: + - cri: {} + - docker: {} + - multiline: + # Identify timestamps as first line of a multiline block. + firstline: '^\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{2}:\d{2}.\d{3}' + max_lines: 128 + max_wait_time: 3s + - regex: + expression: '.*DeviceName:(?P[^\t\n\f\r ]+)' + - labels: + deviceName: # @ignore scrapeConfigs: | - job_name: kubernetes-pods