You can also use cron expressions when configuring the period of your reports. The following report measures cluster utilization by looking at CPU utilization from 9am-5pm every weekday.
Weekday CPU utilization by cluster example
apiVersion: metering.openshift.io/v1
kind: Report
metadata:
name: cluster-cpu-utilization-weekdays (1)
spec:
query: "cluster-cpu-utilization" (2)
schedule:
period: "cron"
expression: 0 0 * * 1-5 (3)
-
To say organized, remember to change the name of your Report if you change any of the other values.
-
Adjust your query here. You can also measure cluster utilization with the
cluster-memory-utilization
query. -
For cron periods, normal cron expressions are valid.