Monitor workflows

Google Cloud Observability provides monitoring, logging, and diagnostic tools. These tools can help you monitor and analyze workflow deployments and executions, and understand the behavior, health, and performance of your applications.

By default, Workflows is configured to do the following:

  • Send data and system audit logs to Cloud Logging. You can use the collected logs to debug, troubleshoot, and gain insights about your applications.
  • Send system and resource metrics to Cloud Monitoring. You can use the collected metrics to monitor health and performance, identify trends and issues, and notify for changes in behavior.

Send audit logs to Cloud Logging

Workflows sends the following types of audit log data to Cloud Logging:

Data Access audit logs are disabled by default because these audit logs can be quite large. For more information, see Enable Data Access audit logs.

For more information about audit logs in Workflows, see the following:

You can also send execution logs to Cloud Logging.

Send metrics to Cloud Monitoring

Workflows sends metric data from monitored resources to Google Cloud Observability. A monitored resource in Monitoring represents a logical or physical entity, such as a virtual machine, a database, or an application. Monitored resources contain a unique set of metrics that can be explored, reported through a dashboard, or used to create alerts. Each resource also has a set of resource labels, which are key-value pairs that hold additional information about the resource. Resource labels are available for all metrics associated with the resource.

To view all resource types, see Monitored resource types. To view all metric types, see Google Cloud metrics. Expand the following to see a list of the metric types sent from Workflows to Google Cloud Observability:

Workflows metric types

The "metric type" strings in this table must be prefixed with workflows.googleapis.com/. 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(Resource hierarchy levels)
Display name
Kind, Type, Unit
Monitored resources
Description
Labels
await_callback_step_count GA(project)
Await Callback Step Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of executed steps that wait for a callback. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
callback_requests_count GA(project)
Callback Requests Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of requests made to trigger a callback. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
callback_timeout_count GA(project)
Callback Timeout Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of callbacks that timed out. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
cmek_protected_workflow_count GA(project)
CMEK Protected Workflow Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of workflows deployed with CMEK protection. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
compute_slice_count GA(project)
Compute Slice Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of compute slices executed. Steps are executed in slices of work, which depends on the of type steps being executed (e.g. HTTP requests will run separately from “assign” steps). Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
type: The type of compute slice, such as "IO_REQUEST" or "WAKEUP".
has_parallel: (BOOL) Whether the workflow uses parallel steps.
compute_slice_latencies GA(project)
Compute Slice Latencies
DELTADISTRIBUTIONms
workflows.googleapis.com/Workflow
Latencies from the time a compute slice was scheduled to the time it was executed. Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
type: The type of compute slice, such as "IO_REQUEST" or "WAKEUP".
has_parallel: (BOOL) Whether the workflow uses parallel steps.
compute_step_count GA(project)
Compute Step Count
DELTAINT641
workflows.googleapis.com/Workflow
Number of compute steps executed (e.g. "assign" and "for" steps). Sampled every 60 seconds. After sampling, data is not visible for up to 120 seconds.
revision_id: The revision ID of the executed workflow.
compute_step_latencies GA(project)
Compute Step Latencies
DELTA