Container Service for Kubernetes (ACK) integrates with Managed Service for Prometheus and Managed Service for Grafana, so you do not need to build your own monitoring system or dashboard. After you deploy an application in Knative, you can ingest its monitoring data into Managed Service for Prometheus and view its performance metrics in Managed Service for Grafana.
Prerequisites
-
Knative is deployed in your cluster. For more information, see Deploy Knative or .
-
Managed Service for Prometheus is enabled for your ACK cluster. For more information, see Connect to and configure Managed Service for Prometheus (recommended) or Open source Prometheus monitoring.
Billing
After you ingest monitoring data from your Knative services into Managed Service for Prometheus, the relevant components automatically report metrics to the service. These metrics are billed as custom metrics and may incur additional fees.
To avoid unexpected charges, review the Billing overview for Managed Service for Prometheus to understand the pricing of custom metrics before you enable this feature. Costs vary based on factors such as your cluster scale and the number of applications. You can use the resource usage statistics feature to monitor and manage your resource usage.
Enable Managed Service for Prometheus monitoring
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
On the Clusters page, click the name of your cluster. In the left navigation pane, click .
-
On the Knative page, click the Monitoring Dashboards tab and follow the on-screen instructions to enable the Prometheus dashboard.
View the Knative monitoring dashboard
After you enable Managed Service for Prometheus monitoring, you can view monitoring data on the Monitoring Dashboards tab.
|
Category |
Description |
|
Request data |
In the Overview (average over the selected time range) section, view the following Knative metrics:
The vertical axis (ops/sec) on the Request Volume, 4xx, and 5xx charts represents requests per second.
|
|
Response latency data |
In the Response Time section, view Knative response latency data, including P50, P90, P95, and P99.
|
|
Request concurrency |
In the Autoscaler section, view detailed request concurrency data for Knative.
|
|
Activator |
In the Activator section, view the following data for the Knative Activator:
|
|
Resource usage |
In the Resource Usages section, view Knative resource usage, including CPU and memory.
|
View key Knative service discovery metrics
To view and verify Knative monitoring data, select metrics or write PromQL queries.
-
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, click Integration Management.
-
On the Integrated Environments page, click the Container Service tab. Then, in the Integrated Addons column, click Knative.
-
Click the Metrics Explorer tab to view the following key metrics for Knative.
For information about the UI workflow, see Metrics Explorer.
Note-
If a Knative application scales to zero and has no running pods, Managed Service for Prometheus cannot collect metrics such as request concurrency and requests per second for the pods. These metrics are displayed in the console only after requests are sent to the Knative application pods.
-
If a Knative application is not scaled to zero, the console displays metrics such as request concurrency and requests per second for the pods, even if they are not handling requests.
Metric
Description
queue_average_concurrent_requests
The request concurrency of a pod.
queue_requests_per_second
Requests per second for a pod.
revision_request_latencies
The response latency for a Revision.
revision_request_count
Request count for a Revision.
-
Related documents
For information about using Simple Log Service (SLS) for log collection and monitoring and alerting, see Implement log collection on Knative and Enable monitoring and alerting for Knative services.




