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
eventing/broker/event_count ALPHA
Broker Event Count
DELTAINT641
knative_broker
Number of events received by a broker. 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.
event_type: The CloudEvent type attribute.
eventing/trigger/event_count ALPHA
Trigger Event Count
DELTAINT641
knative_trigger
Number of events received by a trigger. 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.
filter_type: The CloudEvent type attribute used to filter events.
eventing/trigger/event_dispatch_latencies ALPHA
Event Dispatch Latencies
DELTADISTRIBUTIONms
knative_trigger
Distribution of time spent dispatching an event to a trigger subscriber. 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.
filter_type: The CloudEvent type attribute used to filter events.
eventing/trigger/event_processing_latencies ALPHA
Event Processing Latencies
DELTADISTRIBUTIONms
knative_trigger
Distribution of time spent processing an event before it is dispatched to a trigger subscriber. Sampled every 60 seconds. After sampling, data is not visible for up to 180 seconds.
filter_type: The CloudEvent type attribute used to filter events.
internal/eventing/broker/event_count DEPRECATED
Write Only Broker Event Count
CUMULATIVEINT641
knative_broker
Write-only metric. Number of events received by a broker. 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.
event_type: The CloudEvent type attribute.
internal/eventing/trigger/event_count DEPRECATED
Write Only Trigger Event Count
CUMULATIVEINT641
knative_trigger
Write-only metric. Number of events received by a trigger. 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.
filter_type: The CloudEvent type attribute used to filter events.
internal/eventing/trigger/event_dispatch_latencies DEPRECATED
Write Only Event Dispatch Latencies
CUMULATIVEDISTRIBUTIONms
knative_trigger
Write-only metric. Distribution of time spent dispatching an event to a trigger subscriber. 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.
filter_type: The CloudEvent type attribute used to filter events.
internal/eventing/trigger/event_processing_latencies DEPRECATED
Write Only Event Processing Latencies
CUMULATIVEDISTRIBUTIONms
knative_trigger
Write-only metric. Distribution of time spent processing an event before it is dispatched to a trigger subscriber. 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.
filter_type: The CloudEvent type attribute used to filter events.
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 12/05/19 18:34:06 UTC.

Was this page helpful? Let us know how we did:

Send feedback about...

Stackdriver Monitoring