Skip to content

Creating Grafana Datasorce instance from Custom Resource managed by the RedHat community powered Grafana operator

Helene Wassmann edited this page Oct 26, 2021 · 6 revisions

The grafana-serviceaccount serviceAccount, created during Grafana instance deployment, was created alongside the Grafana instance. You need grant the grafana-serviceaccount access rights to the ibm-spectrum-scale-operator clusterRole:

# oc adm policy add-cluster-role-to-user ibm-spectrum-scale-operator -z grafana-serviceaccount

Create the bridge-grafanadatasource GrafanaDataSource from the yaml file:

# oc apply -f https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-bridge-for-grafana/master/examples/openshift_deployment_scripts/grafana_datasource_deployment/grafana-bridge-datasource.yaml

Verify the bridge-grafanadatasource instance from the type GrafanaDatasource has been deployed:

# oc get GrafanaDatasource -n grafana-for-cnsa
NAME                       AGE
bridge-grafanadatasource   2d1h

# oc describe GrafanaDataSource bridge-grafanadatasource -n grafana-for-cnsa
Name:         bridge-grafanadatasource
Namespace:    grafana-for-cnsa
Labels:       <none>
Annotations:  <none>
API Version:  integreatly.org/v1alpha1
Kind:         GrafanaDataSource
Metadata:
  Creation Timestamp:  2021-08-03T06:07:52Z
  ...
Spec:
  Datasources:
    Access:      proxy
    Editable:    true
    Is Default:  true
    Json Data:
      httpHeaderName1:  Authorization
      Time Interval:    5s
      Tls Auth:         true
      Tls Skip Verify:  true
      Tsdb Version:     2.3
    Name:               grafana-bridge
    Secure Json Data:
      Tls Client Cert:  TLS cert ${TLS_CERT}
      Tls Client Key:   TLS key ${TLS_KEY}
    Type:               opentsdb
    URL:                https://ibm-spectrum-scale-grafana-bridge.ibm-spectrum-scale.svc.cluster.local:8443
    Version:            1
  Name:                 grafana-bridge-datasource.yaml
Status:
  Message:  success
  Phase:    reconciling

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally