aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/visualization/charts/grafana/templates
diff options
context:
space:
mode:
authorSrivahni <srivahni.chivukula@intel.com>2019-07-17 00:31:28 -0700
committerSrivahni <srivahni.chivukula@intel.com>2019-07-17 00:39:56 -0700
commitd372a21027f5ade64e2c28037c1deab053b5e36e (patch)
tree609d93cc3f125bdb065f50770352382e4d27d140 /vnfs/DAaaS/deploy/visualization/charts/grafana/templates
parent1ef3f0f57769f91ba2e85b9c2b42368646d483af (diff)
Automate datasource & dashboard imports in grafana
Added to grafana-values.yaml Issue-ID: ONAPARC-393 Signed-off-by: Srivahni <srivahni.chivukula@intel.com> Change-Id: Id6c8413ea4c4ea69cc7b35f52c2f47b364f5906f
Diffstat (limited to 'vnfs/DAaaS/deploy/visualization/charts/grafana/templates')
-rwxr-xr-xvnfs/DAaaS/deploy/visualization/charts/grafana/templates/configmap-add-dashboard.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/configmap-add-dashboard.yaml b/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/configmap-add-dashboard.yaml
new file mode 100755
index 00000000..d125f875
--- /dev/null
+++ b/vnfs/DAaaS/deploy/visualization/charts/grafana/templates/configmap-add-dashboard.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: custom-dashboard1
+ labels:
+ app: {{ template "grafana.name" . }}
+ chart: {{ template "grafana.chart" . }}
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+data:
+{{ (.Files.Glob "dashboards/dashboard1.json").AsConfig | indent 2 }}