Installing Prometheus operator
The OpenShift® administrator can install the custom Prometheus operator to the OpenShift cluster.
Procedure
- Log in to the OpenShift Container Platform (OCP) by using the OpenShift administrator credentials.
- Select the project from the Project list where you want to install
the Prometheus operator. Important: Make sure that you install the Prometheus operator in the same project where you installed the RQA operator.
- In the left panel, go to Operators > OperatorHub.
- To find the Prometheus operator, enter the search term
prometheus
, and click Prometheus Operator provided by Red Hat, which is a community operator. - On the Prometheus Operator page click
Install. The Create Operator Subscription page is shown.
Complete the following steps to create the Prometheus operator subscription:
- Select the installation mode by clicking A specific namespace on the cluster, and choose the project where you want to install the Prometheus operator.
- If the Prometheus 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 Prometheus operator, when a new version is available. If you choose the Approval Strategy as Automatic, the Prometheus 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 Prometheus operator is upgraded to the new version by OLM.
- Click Subscribe. The Prometheus operator details are shown on
the Installed Operator page. The status is shown as
UpgradePending
. - Click the Prometheus 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 Prometheus operator.
- Click Preview Install Plan. The details about the manual installation plan are shown.
- Click Approve.