Update grafana datasource to be dynamically added

This commit is contained in:
Raffael H 2023-10-10 14:14:10 +02:00
parent 7bf01de75f
commit 9b00f330b3
3 changed files with 11 additions and 2 deletions

View File

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.3
version: 0.2.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View File

@ -18,4 +18,7 @@ stringData:
type: prometheus
url: http://thanos-query.{{ .Values.user }}-monitoring.svc.cluster.local:10902
version: 1
{{- if .Values.grafana.datasources }}
{{- toYaml .Values.grafana.datasources | nindent 6 }}
{{- end }}
{{- end }}

View File

@ -6,7 +6,13 @@ alertmanager:
# grafana
grafana:
enabled: false
datasources:
- name: prometheus
access: proxy
editable: false
type: prometheus
url: http://prometheus-operated.user4-monitoring.svc.cluster.local:9090
enabled: true
# prometheus
prometheus: