You are viewing documentation for a release that is no longer maintainedSee documentation for the latest supported version 3 or the latest supported version 4.7.3. 通过一次性报告来衡量集群使用量 以下报告从特定的开始日期开始测量集群使用量。这个报告在您保存并应用后仅会运行一次。 集群的 CPU 使用量示例 apiVersion: metering.openshift.io/v1 kind: Report metadata: name: cluster-cpu-usage-2020 spec: reportingStart: '2020-01-01T00:00:00Z' reportingEnd: '2020-12-30T23:59:59Z' query: cluster-cpu-usage runImmediately: true apiVersion: metering.openshift.io/v1 kind: Report metadata: name: cluster-cpu-usage-2020 1 spec: reportingStart: '2020-01-01T00:00:00Z' 2 reportingEnd: '2020-12-30T23:59:59Z' query: cluster-cpu-usage 3 runImmediately: true 4 Copy to Clipboard Copied! Toggle word wrap Toggle overflow 1 为保持组织有序,如果变更了任何其他值,请务必更改报告的 name。 2 对报告进行配置,以使用自 reportingStart 时间至 reportingEnd 时间之间的数据。 3 通过此处调整查询。您还可使用 cluster-memory-usage 查询来测量集群使用量。 4 将报告配置为在保存并应用报告后立即运行。 前一个下一个