From 32212e21a8d70dfdd7d6f6b3ffbec7ae2266a343 Mon Sep 17 00:00:00 2001 From: razbroc Date: Wed, 15 May 2024 10:37:46 +0300 Subject: [PATCH] fix: remove metrics buckets --- helm/templates/_helpers.tpl | 12 ------------ helm/templates/configmap.yaml | 2 -- 2 files changed, 14 deletions(-) diff --git a/helm/templates/_helpers.tpl b/helm/templates/_helpers.tpl index 16a52bb..d36daf2 100644 --- a/helm/templates/_helpers.tpl +++ b/helm/templates/_helpers.tpl @@ -142,15 +142,3 @@ Returns the metrics url from global if exists or from the chart's values {{- .Values.env.metrics.url -}} {{- end -}} {{- end -}} - - -{{/* -Returns the metrics buckets from global if exists or from the chart's values -*/}} -{{- define "exporter-trigger.metricsBuckets" -}} -{{- if .Values.global.metrics.buckets }} - {{- .Values.global.metrics.buckets -}} -{{- else -}} - {{- .Values.env.metrics.buckets -}} -{{- end -}} -{{- end -}} diff --git a/helm/templates/configmap.yaml b/helm/templates/configmap.yaml index 3177cbb..94223c2 100644 --- a/helm/templates/configmap.yaml +++ b/helm/templates/configmap.yaml @@ -3,7 +3,6 @@ {{- $metricsUrl := include "exporter-trigger.metricsUrl" . -}} {{- $tracingEnabled := include "raster-catalog-manager.tracingEnabled" . -}} {{- $metricsEnabled := include "raster-catalog-manager.metricsEnabled" . -}} -{{- $metricsBuckets := include "raster-catalog-manager.metricsBuckets" . -}} {{- $serviceUrls := (include "common.serviceUrls.merged" .) | fromYaml }} {{- $jobManagement := (include "common.jobManagement.merged" .) | fromYaml }} {{- $storage := (include "common.storage.merged" .) | fromYaml }} @@ -25,7 +24,6 @@ data: TELEMETRY_METRICS_ENABLED: {{ $metricsEnabled | quote }} {{ if $metricsEnabled }} TELEMETRY_METRICS_URL: {{ $metricsUrl }} - TELEMETRY_METRICS_BUCKETS: {{ $metricsBuckets | toJson | quote }} {{ end }} JOB_MANAGER_URL: {{ $serviceUrls.jobManager | quote }} CLEANUP_EXPIRATION_DAYS: {{ .Values.env.cleanupExpirationDays | quote }}