From f2d37cb632bb1706f3e223776e72e50253d4025c Mon Sep 17 00:00:00 2001 From: Srivahni Date: Fri, 23 Aug 2019 11:19:26 -0700 Subject: visualization operator: Add datasource Added support to create a grafana datasource dynamically using GrafanaDataSource CR. Issue-ID: ONAPARC-393 Signed-off-by: Srivahni Change-Id: Iaa645c5c4f303afbcec114c00e35cd6e6ae6c98c --- vnfs/DAaaS/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'vnfs/DAaaS/README.md') diff --git a/vnfs/DAaaS/README.md b/vnfs/DAaaS/README.md index a9c99327..80f0d860 100644 --- a/vnfs/DAaaS/README.md +++ b/vnfs/DAaaS/README.md @@ -90,6 +90,15 @@ cd $DA_WORKING_DIR/../microservices/collectd-operator IMAGE_NAME=dcr.cluster.local:32644/collectd-operator:latest ./build/build_image.sh $IMAGE_NAME ``` +#### visualization-operator +```bash +cd $DA_WORKING_DIR/../microservices/visualization-operator + +## Note: The image tag and respository in the Visualization-operator helm charts needs to match the IMAGE_NAME +IMAGE_NAME=dcr.cluster.local:32644/visualization-operator:latest +./build/build_image.sh $IMAGE_NAME +``` + ### Install the Operator Package ```bash cd $DA_WORKING_DIR/operator @@ -183,6 +192,12 @@ kubectl create -f edge1 [PLUGIN_NAME2]_collectdplugin_cr.yaml kubectl create -f edge1 [PLUGIN_NAME3]_collectdplugin_cr.yaml ... ``` +#### Configure Grafana Datasources +Using the sample [prometheus_grafanadatasource_cr.yaml](microservices/visualization-operator/examples/grafana/prometheus_grafanadatasource_cr.yaml), Configure the GrafanaDataSource CR by running the command below +```yaml +kubectl create -f [DATASOURCE_NAME]_grafanadatasource_cr.yaml +... +``` ## Install Minio Model repository * Prerequisite: Dynamic storage provisioner needs to be enabled. Either rook-ceph ($DA_WORKING_DIR/00-init) or another alternate provisioner needs to be enabled. -- cgit 1.2.3-korg