diff --git a/chart/operator/templates/grafana-k8sgpt-dashboard.yaml b/chart/operator/templates/grafana-k8sgpt-dashboard.yaml index 1580301d..bbad48c9 100644 --- a/chart/operator/templates/grafana-k8sgpt-dashboard.yaml +++ b/chart/operator/templates/grafana-k8sgpt-dashboard.yaml @@ -11,6 +11,7 @@ metadata: app.kubernetes.io/part-of: k8sgpt-operator {{- include "chart.labels" . | nindent 4 }} name: k8sgpt-overview + namespace: {{ .Values.grafanaDashboard.namespace | default (include "k8sgpt-operator.namespace" .) }} data: k8sgpt-overview.json: | {{ .Files.Get "dashboards/k8sgpt-overview.json" | indent 4}} diff --git a/chart/operator/values.yaml b/chart/operator/values.yaml index c30f5db4..ed2f2170 100644 --- a/chart/operator/values.yaml +++ b/chart/operator/values.yaml @@ -5,6 +5,8 @@ serviceMonitor: # namespace: "" grafanaDashboard: enabled: false + # The namespace where Grafana expects to find the dashboard + # namespace: "" folder: annotation: grafana_folder name: ai