From 3942114478eeda08d0ebd373a9b22da8929bd628 Mon Sep 17 00:00:00 2001 From: Srivahni Date: Fri, 20 Sep 2019 13:26:39 -0700 Subject: Updated README Issue-ID: ONAPARC-393 Signed-off-by: Srivahni Change-Id: Ic6578a4b0484b22109bd5a385f0917db8cff14f5 --- vnfs/DAaaS/deploy/visualization/README.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'vnfs/DAaaS/deploy/visualization/README.txt') diff --git a/vnfs/DAaaS/deploy/visualization/README.txt b/vnfs/DAaaS/deploy/visualization/README.txt index 9ebb1a0f..90f20ead 100644 --- a/vnfs/DAaaS/deploy/visualization/README.txt +++ b/vnfs/DAaaS/deploy/visualization/README.txt @@ -1,14 +1,14 @@ -#Add datasource +### To add a datasource Modify "url" in the datasources section of ./charts/grafana/grafana-values.yaml based on the Prometheus or any other service created -#copy the custom dashboards definition into the folder ./charts/grafana/dashboards -Example, - cp ~/dashboard1.json ./charts/grafana/dashboards/ - -#create configmap that imports .json file as config -configmap found at ./charts/grafana/templates/configmap-add-dashboard.yaml - -#Install visualization helm package - -helm install -n graf-prometheus . -f ./grafana-values.yaml +### To add a custom dashboard +1. Place the custom dashboard definition inside the folder ./charts/grafana/dashboards +Example dashboard definition can be found at ./charts/grafana/dashboards/dashboard1.json +2. create a configmap.yaml that imports above created dashboard1.json file as config and place it insdie the folder ./charts/grafana/templates/ +Example configmap can be found at ./charts/grafana/templates/configmap-add-dashboard.yaml +3. Add custom dashboard configuration to values.yaml or an overriding values.yaml. Example configuration can be found in the "dashboardProviders" section of grafana-values.yaml +4. For a fresh install of visualization package, do "helm install" + e.g., helm install -n viz . -f ./values.yaml -f ./grafana-values.yaml + If the custom dashboard is being added to an already existing Grafana, do "helm upgrade" + e.g., helm upgrade -n viz . -f ./values.yaml -f ./grafana-values.yaml -f ...... \ No newline at end of file -- cgit 1.2.3-korg