diff options
author | Srivahni <srivahni.chivukula@intel.com> | 2019-08-23 11:19:26 -0700 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2019-09-06 12:44:13 +0000 |
commit | f2d37cb632bb1706f3e223776e72e50253d4025c (patch) | |
tree | 4cd0be0c4b7777c17296604c1fca127ad9053a0a /vnfs/DAaaS/microservices/visualization-operator/examples | |
parent | 32ec6c9216242b0d9cf76da93eb74b60b6dae7c1 (diff) |
visualization operator: Add datasource
Added support to create a grafana datasource dynamically
using GrafanaDataSource CR.
Issue-ID: ONAPARC-393
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Change-Id: Iaa645c5c4f303afbcec114c00e35cd6e6ae6c98c
Diffstat (limited to 'vnfs/DAaaS/microservices/visualization-operator/examples')
2 files changed, 47 insertions, 0 deletions
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 index 00000000..5d9753ee --- /dev/null +++ b/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/influxdb_grafanadatasource_cr.yaml @@ -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 diff --git a/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/prometheus_grafanadatasource_cr.yaml b/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/prometheus_grafanadatasource_cr.yaml new file mode 100644 index 00000000..b8086366 --- /dev/null +++ b/vnfs/DAaaS/microservices/visualization-operator/examples/grafana/prometheus_grafanadatasource_cr.yaml @@ -0,0 +1,23 @@ +apiVersion: onap.org/v1alpha1 +kind: GrafanaDataSource +metadata: + name: prometheus +spec: + datasources: + - name: Prometheus + type: prometheus + url: http://cp-prometheus-prometheus:9090 + isDefault: true + access: proxy + withCredentials: true + basicAuth: true + basicAuthUser: user + basicAuthPassword: password + jsonData: + timeInterval: 10s + queryTimeout: 50s + readOnly: false + grafana: + url: http://vis-grafana.default.svc.cluster.local + username: admin + password: admin |