Knative metrics

Cloud Monitoring supports the Knative metrics listed in this document.

  • For a general explanation of the entries in the tables, including information about values like DELTA and GAUGE, see Metric types. To chart or monitor metric types with values of type STRING, you must use Monitoring Query Language (MQL), and you must convert the value into a numeric value. For information about MQL string-conversion methods, see String.
  • For information about the units used in the metric lists, see the unit field in the MetricDescriptor reference.
  • 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 pricing information, see Cloud Monitoring pricing summary.
  • For information about the meaning of launch stages such as GA (General Availability) and BETA (Preview), see Product launch stages.

Knative metrics

Metrics from Knative.

The following list was last generated at 2024-05-23 21:36:30 UTC. For more information about this process, see About the lists.

knative

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

The "metric type" strings in this table must be prefixed with knative.dev/. That prefix has been omitted from the entries in the table. When querying a label, use the metric.labels. prefix; for example, metric.labels.LABEL="VALUE".

Metric type Launch stage
Display name
Kind, Type, Unit
Monitored resources
Description
Labels
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.

Generated at 2024-05-23 21:36:30 UTC.