第 2 章 Multicluster storage health
To view the overall storage health status across all the clusters with OpenShift Data Foundation and manage its capacity, you must first enable the multicluster dashboard on the Hub cluster.
2.1. Enabling multicluster dashboard on Hub cluster 复制链接链接已复制到粘贴板!
You can enable the multicluster dashboard on the install screen either before or after installing ODF Multicluster Orchestrator with the console plugin.
Prerequisites
- Ensure that you have installed OpenShift Container Platform version 4.17 and have administrator privileges.
- Ensure that you have installed Multicluster Orchestrator 4.17 operator with plugin for console enabled.
- Ensure that you have installed Red Hat Advanced Cluster Management for Kubernetes (RHACM) 2.11 from Operator Hub. For instructions on how to install, see Installing RHACM.
- Ensure you have enabled observability on RHACM. See Enabling observability guidelines.
Procedure
Create the configmap file named
observability-metrics-custom-allowlist.yamland add the name of the custom metric to themetrics_list.yamlparameter.You can use the following YAML to list the OpenShift Data Foundation metrics on Hub cluster. For details, see Adding custom metrics.
kind: ConfigMap apiVersion: v1 metadata: name: observability-metrics-custom-allowlist Namespace: open-cluster-management-observability data: metrics_list.yaml: | names: - odf_system_health_status - odf_system_map - odf_system_raw_capacity_total_bytes - odf_system_raw_capacity_used_bytes matches: - __name__="csv_succeeded",exported_namespace="openshift-storage",name=~"odf-operator.*"Run the following command in the
open-cluster-management-observabilitynamespace:# oc apply -n open-cluster-management-observability -f observability-metrics-custom-allowlist.yamlAfter observability-metrics-custom-allowlist yaml is created, RHACM will start collecting the listed OpenShift Data Foundation metrics from all the managed clusters.
If you want to exclude specific managed clusters from collecting the observability data, add the following cluster label to your clusters:
observability: disabled.- To view the multicluster health, see chapter verifying multicluster storage dashboard.