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 1 spec: reportingStart: '2019-01-01T00:00:00Z' 2 reportingEnd: '2019-12-30T23:59:59Z' query: cluster-cpu-usage 3 runImmediately: true 4
- 1
- To stay organized, remember to change the
name
of your report if you change any of the other values. - 2
- Configures the report to start using data from the
reportingStart
timestamp until thereportingEnd
timestamp. - 3
- Adjust your query here. You can also measure cluster usage with the
cluster-memory-usage
query. - 4
- Configures the report to run immediately after saving it and applying it.