From cf2de73a5a28c08663b39402522cbc3403d31b25 Mon Sep 17 00:00:00 2001 From: Enrico Giorio Date: Wed, 6 Nov 2024 15:04:34 +0000 Subject: [PATCH] fix: Properly config file_storage --- charts/agent/Chart.yaml | 2 +- charts/agent/README.md | 2 +- charts/agent/templates/_config-extensions.tpl | 5 +++++ charts/agent/templates/_node-logs-metrics-config.tpl | 3 +-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/agent/Chart.yaml b/charts/agent/Chart.yaml index 0e99240c..7651c582 100644 --- a/charts/agent/Chart.yaml +++ b/charts/agent/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: agent description: Chart to install K8s collection stack based on Observe Agent type: application -version: 0.28.2 +version: 0.28.3 appVersion: "1.1.0" dependencies: - name: opentelemetry-collector diff --git a/charts/agent/README.md b/charts/agent/README.md index 220209eb..b5649fa0 100644 --- a/charts/agent/README.md +++ b/charts/agent/README.md @@ -1,6 +1,6 @@ # agent -![Version: 0.28.2](https://img.shields.io/badge/Version-0.28.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square) +![Version: 0.28.3](https://img.shields.io/badge/Version-0.28.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square) > [!CAUTION] > This chart is under active development and is not meant to be installed yet. diff --git a/charts/agent/templates/_config-extensions.tpl b/charts/agent/templates/_config-extensions.tpl index 7a0c311d..16f9cf86 100644 --- a/charts/agent/templates/_config-extensions.tpl +++ b/charts/agent/templates/_config-extensions.tpl @@ -4,3 +4,8 @@ health_check: endpoint: "{{ template "config.local_host"}}:13133" {{- end -}} + +{{- define "config.extensions.file_storage" -}} +file_storage: + create_directory: true +{{- end -}} diff --git a/charts/agent/templates/_node-logs-metrics-config.tpl b/charts/agent/templates/_node-logs-metrics-config.tpl index d6d8ebcc..5665e020 100644 --- a/charts/agent/templates/_node-logs-metrics-config.tpl +++ b/charts/agent/templates/_node-logs-metrics-config.tpl @@ -2,8 +2,7 @@ extensions: {{- include "config.extensions.health_check" . | nindent 2 }} - file_storage: - directory: /var/lib/otelcol +{{- include "config.extensions.file_storage" . | nindent 2 }} exporters: {{- include "config.exporters.debug" . | nindent 2 }}