-
Notifications
You must be signed in to change notification settings - Fork 22
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
Visit the IBM Storage Scale Knowledge Center for getting more info about the latest product updates
-
- Setup classic Grafana
- Make usage of Grafana Provisioning feature
-
- Installing RedHat community-powered Grafana operator from OperatorHub
- Creating Grafana instance using the RedHat community-powered Grafana-operator
- Creating Grafana Datasorce instance from Custom Resource managed by the RedHat community powered Grafana operator
- Importing the predefined dashboard from the example dashboards collection
- Exploring Grafana WEB interface for CNSA project in a k8s OCP environment
- How to setup Grafana instance to monitor multiple IBM Storage Scale clusters running in a cloud or mixed environment
- API key authentication
- Configurable bridge settings
- CherryPy builtin HTTP server settings
- How to setup HTTPS(SSL) connection
- Start and stop grafana-bridge with systemd
- Refresh IBM Storage Scale cluster configuration data cached by grafana bridge
- Accelerate the PrometheusExporter data retrieval time
- Grafana Dashboard Panel shows no metric values for a particular entity
- Missing Grafana-Operator on an OpenShift cluster
- Missing CherryPy packages
- What to do if your system is on Python < 3.8
- Grafana-bridge fails to start with Python3.8
- Grafana-bridge container time is different from a host time
- Verify that the grafana-bridge returns data as expected