ACK clusters integrate with Managed Service for Prometheus and Grafana, eliminating the need to set up your own monitoring system and dashboards. You can then use Grafana dashboards to view key metrics in real time, such as response latency, concurrent requests, and CPU and memory usage.
Prerequisites
You have deployed Knative in the ACS cluster.
Billing
When you ingest monitoring data from your Knative services into Managed Service for Prometheus, metrics are automatically pushed to the service. These metrics are considered custom metrics and incur additional fees.
To avoid unexpected charges, read the billing overview of 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 size and the number of applications. You can use the resource consumption statistics feature to monitor and manage your resource usage.
Enable Managed Service for Prometheus
-
Log on to the ACS console. In the left navigation pane, click Clusters.
-
On the Clusters page, click the name of the target cluster. In the left navigation pane, choose .
-
On the Knative page, click the Monitoring Dashboards tab and then click Enable Prometheus Dashboard.
Knative monitoring dashboard
After you enable Managed Service for Prometheus, you can view detailed monitoring data on the Monitoring Dashboards tab.
|
Section |
Description |
|
Request data |
In the Overview (average over the selected time range) section, you can view monitoring data for your Knative service, including Request Volume, Success Rate, 4xx (client-side errors), 5xx (server-side errors), and pod scaling trends. Note
The vertical axis (ops/sec) on the Request Volume, 4xx, and 5xx charts indicates the number of operations processed per second.
|
|
Response latency data |
In the Response Time section, you can view response latency data for your Knative service, including P50, P90, P95, and P99 percentiles. |
|
Concurrent requests |
In the Autoscaler section, you can view detailed data about concurrent requests for your Knative service. |
|
Resource usage |
In the Resource Usages section, you can view resource usage data for your Knative service, including CPU and memory. |
Key Knative service discovery metrics
In the Application Real-Time Monitoring Service (ARMS) console, go to Integration Management in the left-side navigation pane. On the Container Environment tab within the Integrated Environments section, click the name of the Prometheus service instance. Then, on the Container Environment page, click Metric Scraping to view the Knative service discovery metrics described in the following section.
-
When a Knative application scales to zero pod instances, Prometheus cannot scrape metrics such as concurrent requests and requests per second. The console displays these metrics only after the application receives traffic and scales up.
-
If a Knative application has one or more running pod instances, the console displays metrics such as concurrent requests and requests per second, even without new traffic.
|
Metric |
Description |
|
queue_average_concurrent_requests |
The number of concurrent requests for a pod. |
|
queue_requests_per_second |
The number of requests per second for a pod. |
|
revision_request_latencies |
Response latency. |
|
revision_request_count |
The number of requests for a revision. |
References
You can use Simple Log Service (SLS) to collect logs and configure alerts. For more information, see Enable log collection in Knative and Configure alerting for Knative services.



