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.7.4. 使用 cron 表达式来测量集群利用率
在配置报告周期时还可使用 cron 表达式。以下报告通过查看每个工作日 9am -5pm 的 CPU 利用率来衡量集群使用量。
集群的工作日 CPU 利用率示例
apiVersion: metering.openshift.io/v1 kind: Report metadata: name: cluster-cpu-utilization-weekdays spec: query: "cluster-cpu-utilization" schedule: period: "cron" expression: 0 0 * * 1-5
apiVersion: metering.openshift.io/v1
kind: Report
metadata:
name: cluster-cpu-utilization-weekdays
spec:
query: "cluster-cpu-utilization"
schedule:
period: "cron"
expression: 0 0 * * 1-5