visualization operator: Add datasource
[demo.git] / vnfs / DAaaS / microservices / visualization-operator / examples / grafana / influxdb_grafanadatasource_cr.yaml
diff --git a/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/influxdb_grafanadatasource_cr.yaml b/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/influxdb_grafanadatasource_cr.yaml
new file mode 100644 (file)
index 0000000..5d9753e
--- /dev/null
@@ -0,0 +1,24 @@
+apiVersion: onap.org/v1alpha1
+kind: GrafanaDataSource
+metadata:
+  name: influxdb
+spec:
+  datasources:
+    - name: InfluxDB
+      type: influxdb
+      url: http://localhost:8086 
+      isDefault: false
+      access: proxy
+      withCredentials: true
+      basicAuth: true
+      basicAuthUser: user
+      basicAuthPassword: password
+      database: collectd
+      user: user
+      password: password
+      jsonData:
+        timeInterval: 15s
+  grafana:
+    url:  http://vis-grafana.default.svc.cluster.local
+    username: admin
+    password: admin