7.3. Measure cluster usage with a one-time report
The following report measures cluster usage from a specific starting date forward. The report only runs once, after you save it and apply it.
CPU usage by cluster example
apiVersion: metering.openshift.io/v1
kind: Report
metadata:
name: cluster-cpu-usage-2019
spec:
reportingStart: '2019-01-01T00:00:00Z'
reportingEnd: '2019-12-30T23:59:59Z'
query: cluster-cpu-usage
runImmediately: true
- 1
- To stay organized, remember to change the
nameof your report if you change any of the other values. - 2
- Configures the report to start using data from the
reportingStarttimestamp until thereportingEndtimestamp. - 3
- Adjust your query here. You can also measure cluster usage with the
cluster-memory-usagequery. - 4
- Configures the report to run immediately after saving it and applying it.