diff --git a/charts/sn-platform/templates/prometheus/prometheus-configmap.yaml b/charts/sn-platform/templates/prometheus/prometheus-configmap.yaml index a3261973..4a264511 100644 --- a/charts/sn-platform/templates/prometheus/prometheus-configmap.yaml +++ b/charts/sn-platform/templates/prometheus/prometheus-configmap.yaml @@ -32,6 +32,10 @@ data: prometheus.yml: | global: scrape_interval: {{ .Values.prometheus.scrapeInterval }} +{{- if .Values.prometheus.externalLabels }} + external_labels: +{{ toYaml .Values.prometheus.externalLabels | indent 8 }} +{{- end }} {{- if .Values.monitoring.alert_manager }} rule_files: - 'rules.yml' diff --git a/charts/sn-platform/values.yaml b/charts/sn-platform/values.yaml index f5ba881f..7607e499 100644 --- a/charts/sn-platform/values.yaml +++ b/charts/sn-platform/values.yaml @@ -1781,6 +1781,7 @@ prometheus: # https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects - --storage.tsdb.wal-compression scrapeInterval: 15s + externalLabels: {} securityContext: runAsUser: 65534 runAsNonRoot: true @@ -1799,7 +1800,7 @@ prometheus: periodSeconds: 10 customRelabelConfigs: [] extraScrapeConfigs: [] - extraCustomArgs: {} + extraCustomArgs: ## Prometheus service ## templates/prometheus-service.yaml