blob: a9e6d982214db3094509b9468e4e207693ca64ee [file] [log] [blame]
Andy Bavierab75e9e2020-08-06 12:05:30 -07001# Copyright 2020-present Open Networking Foundation
2# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
3
4apiVersion: v1
5kind: ConfigMap
6metadata:
7 name: {{ .Release.Name }}-dashboards
8 labels:
9 grafana_dashboard: "1"
10data:
Andy Bavier502d6012020-09-30 11:46:06 -070011{{- if .Values.globalDashboard }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070012{{- if and .Values.edgeServerDatasourceURL .Values.googleCloudMonitoring }}
Andy Bavierab75e9e2020-08-06 12:05:30 -070013{{ (.Files.Glob "dashboards/global*.json").AsConfig | indent 2 }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070014{{- end }}
Andy Bavier502d6012020-09-30 11:46:06 -070015{{- end }}
16{{- if .Values.multiSiteDashboard }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070017{{- if and .Values.edgeServerDatasourceURL .Values.clusterDatasources }}
18{{ (.Files.Glob "dashboards/multi*.json").AsConfig | indent 2 }}
19{{- end }}
Andy Bavier502d6012020-09-30 11:46:06 -070020{{- end }}
21{{- if .Values.enterpriseDashboard }}
22{{- if and .Values.edgeServerDatasourceURL .Values.clusterDatasources }}
23{{- $path := printf "dashboards/%s*.json" .Values.enterpriseDashboard }}
24{{ (.Files.Glob $path).AsConfig | indent 2 }}
25{{- end }}
26{{- end }}
Andy Bavieracbe6af2020-10-06 13:51:42 -070027{{- if .Values.sdCoreDashboard }}
28{{- if .Values.sdCoreDatasourceURL }}
29{{ (.Files.Glob "dashboards/sdcore*.json").AsConfig | indent 2 }}
30{{- end }}
31{{- end }}