Skip to content

Commit a7daa62

Browse files
committed
provide example of the deployment a GrafanaDataSource for grafana-bridge
1 parent 7f9bcfa commit a7daa62

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Example deployment of a GrafanaDataSource instance in a k8s/OCP environment
2+
3+
4+
Using the scripts in this folder you can deploy a GrafanaDataSource instance for the IBM Spectrum Scale Performance Monitoring Bridge for Grafana running in container
5+
6+
```
7+
oc adm policy add-cluster-role-to-user ibm-spectrum-scale-operator -z grafana-serviceaccount
8+
oc apply -f grafana-bridge-datasource.yaml
9+
oc describe GrafanaDataSource bridge-grafanadatasource
10+
11+
```
12+
13+
For complete deployment examples please check the project [Wiki](https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/wiki)

example_deployment_scripts/grafana_datasource_deployment/grafana-bridge-datasource.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
kind: GrafanaDataSource
33
metadata:
44
name: bridge-grafanadatasource
5-
namespace: <grafana-instance namespace>
5+
namespace: grafana-for-cnsa
66
spec:
77
datasources:
88
- access: proxy
@@ -13,12 +13,17 @@ spec:
1313
timeInterval: 5s
1414
tlsSkipVerify: true
1515
tlsAuth: true
16+
tsdbVersion: '2.3'
1617
name: grafana-bridge
1718
type: opentsdb
1819
secureJsonData:
1920
tlsClientCert: 'TLS cert ${TLS_CERT}'
2021
tlsClientKey: 'TLS key ${TLS_KEY}'
21-
httpHeaderValue1: 'Bearer ${BEARER_TOKEN}'
22-
url: 'https://grafana-bridge.${namespace-name of the CNSA project}.svc.cluster.local:8443'
22+
###########################################################################################
23+
#
24+
# url: 'https://$(service name of the grafana-bridge DeploymentSet).${namespace-name of the CNSA project}.svc.cluster.local:8443'
25+
#
26+
###########################################################################################
27+
url: 'https://ibm-spectrum-scale-grafana-bridge.ibm-spectrum-scale.svc.cluster.local:8443'
2328
version: 1
2429
name: grafana-bridge-datasource.yaml

0 commit comments

Comments
 (0)