Filter out metrics not in list

Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
Michel Hollands
2024-04-04 11:19:34 +01:00
parent 13294675fe
commit 6bb31ad5e0
3 changed files with 93 additions and 5 deletions

View File

@@ -37,3 +37,7 @@
{{- 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 -}}