Knative metrics

Stackdriver Monitoring supports the Knative metrics listed on this page.

To use these metrics in charting or alerting, your Google Cloud project must be associated with a Workspace. For more information, see Workspaces.

  • For a general explanation of the entries in the tables, including information about values like DELTA and GAUGE, see Metric types.

  • For information about statements of the form “Sampled every x seconds” and “After sampling, data is not visible for up to y seconds”, see Additional information: metadata.

  • For a set of complete, current lists of supported metric types, see Metrics list.

Knative Metric List

Knative metrics

Metrics from Knative.

knative

Metrics from Knative components. Launch stages of these metrics: ALPHA BETA

The following metric type names must be prefixed with knative.dev/. That prefix has been omitted from the entries in the table.

Metric type Launch stage
Display name
Kind, Type, Unit
Monitored resources
Description
Labels
internal/serving/activator/request_count ALPHA
Write Only Activator Request Count
CUMULATIVEINT641
knative_revision
Write-only metric. The number of requests that are routed to the activator. Sampled every 60 seconds.
container_name: The name of the container reporting the metric data.
pod_name: The name of the pod that the container is running in.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
num_tries: (INT64) The number of tries (retry on 503s only) it takes to get a response from a reserve revision.
internal/serving/activator/request_latencies ALPHA
Write Only Activator Request Latencies
CUMULATIVEDISTRIBUTIONms
knative_revision
Write-only metric. Distribution of service request times in milliseconds for requests that go through the activator. Value is the total time requests spent in activator and revision pods. Sampled every 60 seconds.
container_name: The name of the container reporting the metric data.
pod_name: The name of the pod that the container is running in.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
internal/serving/revision/request_count ALPHA
Write Only Request Count
CUMULATIVEINT641
knative_revision
Write-only metric. The number of requests reaching the revision. Sampled every 60 seconds.
container_name: The name of the container reporting the metric data.
pod_name: The name of the pod that the container is running in.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
internal/serving/revision/request_latencies ALPHA
Write Only Request Latencies
CUMULATIVEDISTRIBUTIONms
knative_revision
Write-only metric. Distribution of service request times in milliseconds for requests reaching the revision. Value is the time requests spent in revision pods. Sampled every 60 seconds.
container_name: The name of the container reporting the metric data.
pod_name: The name of the pod that the container is running in.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
serving/activator/request_count BETA
Activator Request Count
DELTAINT641
knative_revision
The number of requests that are routed to the activator. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
num_tries: (INT64) The number of tries (retry on 503s only) it takes to get a response from a reserve revision.
serving/activator/request_latencies BETA
Activator Request Latencies
DELTADISTRIBUTIONms
knative_revision
Distribution of service request times in milliseconds for requests that go through the activator. Value is the total time requests spent in activator and revision pods. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
serving/autoscaler/actual_pods BETA
Actual Pod Count
GAUGEINT641
knative_revision
Number of pods that are allocated currently. Sampled every 60 seconds.
serving/autoscaler/desired_pods BETA
Desired Pod Count
GAUGEINT641
knative_revision
Number of pods autoscaler wants to allocate. Sampled every 60 seconds.
serving/autoscaler/panic_mode BETA
Panic Mode
GAUGEINT641
knative_revision
Set to 1 if autoscaler is in panic mode for the revision, otherwise 0. Sampled every 60 seconds.
serving/autoscaler/panic_request_concurrency BETA
Observed Panic Concurrency
GAUGEDOUBLE1
knative_revision
Average requests concurrency observed per pod during the shorter panic autoscaling window. Sampled every 60 seconds.
serving/autoscaler/requested_pods BETA
Requested Pod Count
GAUGEINT641
knative_revision
Number of pods autoscaler requested from Kubernetes. Sampled every 60 seconds.
serving/autoscaler/stable_request_concurrency BETA
Observed Stable Concurrency
GAUGEDOUBLE1
knative_revision
Average requests concurrency observed per pod during the stable autoscaling window. Sampled every 60 seconds.
serving/autoscaler/target_concurrency_per_pod BETA
Target Concurrency Per Pod
GAUGEDOUBLE1
knative_revision
The desired average requests concurrency per pod during the stable autoscaling window. Sampled every 60 seconds.
serving/revision/request_count BETA
Request Count
DELTAINT641
knative_revision
The number of requests reaching the revision. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.
serving/revision/request_latencies BETA
Request Latencies
DELTADISTRIBUTIONms
knative_revision
Distribution of service request times in milliseconds for requests reaching the revision. Value is the time requests spent in revision pods. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.
response_code_class: One of '1xx', '2xx', '3xx', '4xx', or '5xx' according to response code of the request. If any other code is returned, it should be reported as '5xx'.
response_code: (INT64) Response code of the request according to protocol.

This metric data was last updated at 11/27/19 16:22:40 UTC.

本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Stackdriver Monitoring