diff --git a/stable/grafana/Chart.yaml b/stable/grafana/Chart.yaml index a9306ee92b..9d85daee48 100755 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 3.3.1 +version: 3.3.2 appVersion: 6.1.4 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/stable/grafana/README.md b/stable/grafana/README.md index 73afba53b9..cac101b212 100644 --- a/stable/grafana/README.md +++ b/stable/grafana/README.md @@ -92,6 +92,8 @@ The command removes all the Kubernetes components associated with the chart and | `sidecar.dashboards.enabled` | Enabled the cluster wide search for dashboards and adds/updates/deletes them in grafana | `false` | | `sidecar.skipTlsVerify` | Set to true to skip tls verification for kube api calls | `nil` | | `sidecar.dashboards.label` | Label that config maps with dashboards should have to be added | `grafana_dashboard` | +| `sidecar.dashboards.folder` | Folder in the pod that should hold the collected dashboards (unless `sidecar.dashboards.defaultFolderName` is set). This path will be mounted. | `/tmp/dashboards` | +| `sidecar.dashboards.defaultFolderName` | The default folder name, it will create a subfolder under the `sidecar.dashboards.folder` and put dashboards in there instead | `nil` | | `sidecar.dashboards.searchNamespace` | If specified, the sidecar will search for dashboard config-maps inside this namespace. Otherwise the namespace in which the sidecar is running will be used. It's also possible to specify ALL to search in all namespaces | `nil` | | `sidecar.datasources.enabled` | Enabled the cluster wide search for datasources and adds/updates/deletes them in grafana |`false` | | `sidecar.datasources.label` | Label that config maps with datasources should have to be added | `grafana_datasource` | diff --git a/stable/grafana/templates/configmap-dashboard-provider.yaml b/stable/grafana/templates/configmap-dashboard-provider.yaml index 077173194d..0cdedfadd0 100644 --- a/stable/grafana/templates/configmap-dashboard-provider.yaml +++ b/stable/grafana/templates/configmap-dashboard-provider.yaml @@ -22,5 +22,5 @@ data: type: file disableDeletion: false options: - path: {{ .Values.sidecar.dashboards.folder }} + path: {{ .Values.sidecar.dashboards.folder }}{{- with .Values.sidecar.dashboards.defaultFolderName }}/{{ . }}{{- end }} {{- end}} diff --git a/stable/grafana/templates/deployment.yaml b/stable/grafana/templates/deployment.yaml index 52570e2b63..22e52ea8a8 100644 --- a/stable/grafana/templates/deployment.yaml +++ b/stable/grafana/templates/deployment.yaml @@ -125,7 +125,7 @@ spec: - name: LABEL value: "{{ .Values.sidecar.dashboards.label }}" - name: FOLDER - value: "{{ .Values.sidecar.dashboards.folder }}" + value: "{{ .Values.sidecar.dashboards.folder }}{{- with .Values.sidecar.dashboards.defaultFolderName }}/{{ . }}{{- end }}" {{- if .Values.sidecar.dashboards.searchNamespace }} - name: NAMESPACE value: "{{ .Values.sidecar.dashboards.searchNamespace }}" diff --git a/stable/grafana/values.yaml b/stable/grafana/values.yaml index f721389659..d17c7abb34 100644 --- a/stable/grafana/values.yaml +++ b/stable/grafana/values.yaml @@ -384,8 +384,10 @@ sidecar: enabled: false # label that the configmaps with dashboards are marked with label: grafana_dashboard - # folder in the pod that should hold the collected dashboards + # folder in the pod that should hold the collected dashboards (unless `defaultFolderName` is set) folder: /tmp/dashboards + # The default folder name, it will create a subfolder under the `folder` and put dashboards in there instead + defaultFolderName: null # If specified, the sidecar will search for dashboard config-maps inside this namespace. # Otherwise the namespace in which the sidecar is running will be used. # It's also possible to specify ALL to search in all namespaces