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.2. Datasources for Knative Serving metering
The following ReportDataSources
are examples of how Knative Serving can be used with OpenShift Container Platform metering.
13.2.1. Datasource for CPU usage in Knative Serving 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
This datasource provides the accumulated CPU seconds used per Knative service over the report time period.
Example YAML file
13.2.2. Datasource for memory usage in Knative Serving 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
This datasource provides the average memory consumption per Knative service over the report time period.
Example YAML file
Procedure
Apply the
ReportDataSources
resource as a YAML file:oc apply -f <datasource_name>.yaml
$ oc apply -f <datasource_name>.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example command
oc apply -f knative-service-memory-usage.yaml
$ oc apply -f knative-service-memory-usage.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow