From bcac10ca746ed0e8eeb60ecc07d42fc854709f1e Mon Sep 17 00:00:00 2001 From: Edward Welch Date: Fri, 25 Oct 2024 19:45:27 +0000 Subject: [PATCH] allow alloy to run in the same namespace it is monitoring and not require an entry for `namespacesToMonitor` --- charts/meta-monitoring/templates/validate.yaml | 4 ---- charts/meta-monitoring/values.yaml | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/charts/meta-monitoring/templates/validate.yaml b/charts/meta-monitoring/templates/validate.yaml index d775438..4f48578 100644 --- a/charts/meta-monitoring/templates/validate.yaml +++ b/charts/meta-monitoring/templates/validate.yaml @@ -34,10 +34,6 @@ {{- end -}} {{- end -}} -{{- if empty .Values.namespacesToMonitor -}} - {{- fail "No namespaces have been specified in namespacesToMonitor" -}} -{{- end -}} - {{- if empty .Values.metrics.retain -}} {{- fail "All metrics will be collected, please specify some in metrics.retain" -}} {{- end -}} diff --git a/charts/meta-monitoring/values.yaml b/charts/meta-monitoring/values.yaml index 82654e1..429e6e0 100644 --- a/charts/meta-monitoring/values.yaml +++ b/charts/meta-monitoring/values.yaml @@ -1,6 +1,7 @@ # Specify the namespaces to monitor here -namespacesToMonitor: -- loki +# By default the chart will monitor the namespace it is installed in +# namespacesToMonitor: +# - loki # The name of the cluster where this will be installed clusterLabelValue: "meta" # Set to true to write logs, metrics or traces to Grafana Cloud