To install the Metering Operator first create an openshift-metering
namespace, and then install the Metering Operator from OperatorHub.
-
In the {product-title} web console, click Administration → Namespaces → Create Namespace.
-
Set the name to
openshift-metering
. No other namespace is supported. Label the namespace withopenshift.io/cluster-monitoring=true
, and click Create. -
Next, click Operators → OperatorHub, and filter for
metering
to find the Metering Operator. -
Click the Metering card, review the package description, and then click Install.
-
On the Create Operator Subscription screen, select the
openshift-metering
namespace you created above. Specify your update channel and approval strategy, then click Subscribe to install metering. -
On the Installed Operators screen the Status displays InstallSucceeded when metering has finished installing. Click the name of the operator in the first column to view the Operator Details page.
Note
|
It may take a few minutes for the metering operator to appear. |
From the Operator Details page you can create different resources related to metering. To complete your installation create a MeteringConfig resource to configure metering and install the components of the metering stack.