diff --git a/helm/templates/grafana-dashboard.yaml b/helm/templates/grafana-dashboard.yaml index 9e38f78..4c53751 100644 --- a/helm/templates/grafana-dashboard.yaml +++ b/helm/templates/grafana-dashboard.yaml @@ -10,6 +10,10 @@ metadata: {{- else }} namespace: {{ .Release.Namespace }} {{- end}} + annotations: + {{- with .Values.grafanaDashboard.dashboardAnnotations }} + {{- toYaml . | nindent 4 }} + {{- end }} data: grafana-helm-exporter.json: |- { @@ -265,4 +269,4 @@ data: "uid": "Gqncyvfmz", "version": 1 } -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/helm/values.yaml b/helm/values.yaml index 5998da1..46c1e35 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -23,6 +23,9 @@ grafanaDashboard: enabled: false # Specifies then namespace where the dashboard should be created # namespace: + # Add annotations to Configmap for Grafana dashboard + dashboardAnnotations: {} + # k8s-sidecar-target-directory: /tmp/dashboards/myfolder replicaCount: 1