This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5. Verifying the metering installation
You can verify the metering installation by performing any of the following checks:
Check the Metering Operator
ClusterServiceVersion
(CSV) resource for the metering version. This can be done through either the web console or CLI.Procedure (UI)
-
Navigate to Operators
Installed Operators in the openshift-metering
namespace. - Click Metering Operator.
- Click Subscription for Subscription Details.
- Check the Installed Version.
Procedure (CLI)
Check the Metering Operator CSV in the
openshift-metering
namespace:oc --namespace openshift-metering get csv
$ oc --namespace openshift-metering get csv
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
NAME DISPLAY VERSION REPLACES PHASE elasticsearch-operator.4.5.0-202006231303.p0 Elasticsearch Operator 4.5.0-202006231303.p0 Succeeded metering-operator.v4.5.0 Metering 4.5.0 Succeeded
NAME DISPLAY VERSION REPLACES PHASE elasticsearch-operator.4.5.0-202006231303.p0 Elasticsearch Operator 4.5.0-202006231303.p0 Succeeded metering-operator.v4.5.0 Metering 4.5.0 Succeeded
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Navigate to Operators
Check that all required pods in the
openshift-metering
namespace are created. This can be done through either the web console or CLI.注意Many pods rely on other components to function before they themselves can be considered ready. Some pods may restart if other pods take too long to start. This is to be expected during the Metering Operator installation.
Procedure (UI)
-
Navigate to Workloads
Pods in the metering namespace and verify that pods are being created. This can take several minutes after installing the metering stack.
Procedure (CLI)
Check that all required pods in the
openshift-metering
namespace are created:oc -n openshift-metering get pods
$ oc -n openshift-metering get pods
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Navigate to Workloads
Verify that the
ReportDataSource
resources are beginning to import data, indicated by a valid timestamp in theEARLIEST METRIC
column. This might take several minutes. Filter out the "-raw"ReportDataSource
resources, which do not import data:oc get reportdatasources -n openshift-metering | grep -v raw
$ oc get reportdatasources -n openshift-metering | grep -v raw
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After all pods are ready and you have verified that data is being imported, you can begin using metering to collect data and report on your cluster.