项目作者: gbengataylor

项目描述 :
artifacts for er-demo cdc-dv demo
高级语言:
项目地址: git://github.com/gbengataylor/er-demo-cdc-dv.git
创建时间: 2020-07-17T16:58:37Z
项目社区:https://github.com/gbengataylor/er-demo-cdc-dv

开源协议:

下载


prereq: install er-demo

Create a project called datavirt

  1. #change namespace if needed
  2. erdemometricsnamespace=user1-er-metrics
  3. oc new-project datavirt

install the Red Hat Data Virtualization operator in datavirt project via OperatorHub

modify the er-vdb.yaml file. Substitue occurrences of ‘user1-er-demo’ with userX-er-demo, where X is the user that has er-demo installed. There are three occurences in the file related to the jdbc connection string. For e.g

  1. apiVersion: teiid.io/v1alpha1
  2. kind: VirtualDatabase
  3. metadata:
  4. name: ervdb
  5. ...
  6. - name: er
  7. type: postgresql
  8. properties:
  9. - name: username
  10. value: naps
  11. - name: password
  12. value: naps
  13. - name: jdbc-url
  14. value: jdbc:postgresql://postgresql.user1-er-demo.svc.cluster.local:5432/emergency_response_demo <--update with appropriate namespace
  15. `

add the VDB

  1. # first time will take about 10 mins to create vdbbuilder (one time only)
  2. # actual vdb will build in about 3 mins
  3. oc apply -f er-vdb.yaml -n datavirt
  4. # if you don't clone the repo and user matches
  5. # oc apply -f https://raw.githubusercontent.com/gbengataylor/er-demo-cdc-dv/master/er-vdb.yaml -n datavirt

install the datawarehouse in the er demo namespace

  1. oc apply -f grafana_vdbdatasources.yaml -n $erdemometricsnamespace
  2. # if you don't clone the repo and user matches
  3. #oc apply -f https://raw.githubusercontent.com/gbengataylor/er-demo-cdc-dv/master/grafana_vdbdatasources.yaml -n $erdemometricsnamespace

Modify grafana-mission-commander-kpi-vdb-dashboard.yaml and modify the label of the CR

  1. apiVersion: integreatly.org/v1alpha1
  2. kind: GrafanaDashboard
  3. metadata:
  4. labels:
  5. monitoring-key: user1-application-monitoring <--- update with user
  6. name: mission-commander-vdb-kpis

Add the dashboard

  1. oc apply -f grafana-mission-commander-kpi-vdb-dashboard.yaml -n $erdemometricsnamespace
  2. # if you don't clone the repo and user matches
  3. #oc apply -f https://raw.githubusercontent.com/gbengataylor/er-demo-cdc-dv/master/grafana-mission-commander-kpi-vdb-dashboard.yaml -n $erdemometricsnamespace