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.13.4. Metering reports for Knative Serving
You can run metering reports against Knative Serving by creating Report
resources. Before you run a report, you must modify the input parameter within the Report
resource to specify the start and end dates of the reporting period.
Example YAML file
13.4.1. Running a metering report 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Run the report by applying it as a YAML file:
oc apply -f <report_name>.yaml
$ oc apply -f <report_name>.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can then check the report by entering the following command:
oc get report
$ oc get report
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
NAME QUERY SCHEDULE RUNNING FAILED LAST REPORT TIME AGE knative-service-cpu-usage knative-service-cpu-usage Finished 2019-06-30T23:59:59Z 10h
NAME QUERY SCHEDULE RUNNING FAILED LAST REPORT TIME AGE knative-service-cpu-usage knative-service-cpu-usage Finished 2019-06-30T23:59:59Z 10h
Copy to Clipboard Copied! Toggle word wrap Toggle overflow