Skip to content

Installing RedHat community powered Grafana operator from OperatorHub

hwassman edited this page Nov 24, 2022 · 15 revisions

Check the Grafana operator available on the OpenShift cluster:

oc get packagemanifests -n openshift-marketplace |grep grafana
grafana-operator                                     Community Operators   34d

NOTE: if the grafana-operator resource is not listed, follow this troubleshooting guide to find the possible issue.

Create the OperatorGroup and the Subscription object in the namespace you are going to deploy a Grafana instance for a CNSA cluster:

NAMESPACE=grafana-for-cnsa
echo $NAMESPACE
oc new-project $NAMESPACE
oc apply -f https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-bridge-for-grafana/master/examples/openshift_deployment_scripts/grafana_deployment/operator-group.yaml --namespace=$NAMESPACE
oc apply -f https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-bridge-for-grafana/master/examples/openshift_deployment_scripts/grafana_deployment/grafana-operator-subscription.yaml --namespace=$NAMESPACE

Check the Grafana operator have been added to the Operator Subscriptions:

oc get subs -n $NAMESPACE
NAME                            PACKAGE            SOURCE                CHANNEL
grafana-operator-subscription   grafana-operator   community-operators   v4

Alternatively you can install the Grafana operator using the OpenShift Container Platform web console.

For more information check the OpenShift documentation about Adding Operators to a cluster

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally