The OpenShift® administrator can install the
custom Grafana operator to the OpenShift
cluster.
About this task
Install the Grafana operator in the same project or the namespace where you installed the
Prometheus operator.
Procedure
-
Log in to the OpenShift Container Platform (OCP) by using the OpenShift administrator credentials.
- Select the project from the Project list where you installed the
Prometheus operator.
- In the left panel, go to
.
- To find the Grafana operator, enter the search term
grafana
, and click
Grafana Operator provided by Red Hat, which is a community operator.
- On the Grafana Operator page click Install.
The Create Operator Subscription page is shown. Complete the following steps to
create the Grafana operator subscription:
- Select the installation mode by clicking A specific namespace on the
cluster, and choose your project where you want to install the Grafana
operator.
- If the Grafana operator is available through various channels, choose the appropriate
channel that you want to subscribe to. Click stable to deploy from the stable
channel.
- Select the Approval Strategy as Manual.
Note: You can choose the Approval Strategy based on how you want OLM to upgrade the Grafana
operator, when a new version is available. If you choose the Approval Strategy as
Automatic, the Grafana operator is automatically upgraded to the new version
by the OLM without human intervention. If you choose the Approval strategy as
Manual, the OLM creates an update request. After you manually approve the
update request, the Grafana operator is upgraded to the new version by OLM.
- Click Subscribe. The Grafana operator details are shown on the
Installed Operator page. The status is shown as
UpgradePending
.
- Click the Grafana operator from the Name column, and click
1 requires approval link.
Note: As you selected the Manual Approval Strategy, you need to preview the
approval plan and provide your approval before you install the Grafana operator.
- Click Preview Install Plan. The details about the manual
installation plan are shown.
- Click Approve.
What to do next
Create a Grafana
instance.