Workflow Studio

Workflow Metrics

Per-workflow and aggregate performance analytics — success rates, execution duration percentiles, error breakdown, trigger volume, and SLA compliance.

The Workflow Metrics page at /workflows/metrics shows aggregate analytics across all workflows. Per-workflow metrics are available in the Analytics tab on each workflow detail page.

Aggregate Metrics

The workspace-level metrics dashboard shows:

  • Total executions over the selected time range (last 24h / 7d / 30d / 90d / custom).
  • Success rate — percentage of runs ending in completed.
  • Error rate — percentage ending in failed.
  • Execution volume chart — runs per hour/day stacked by status.
  • Top 10 by error rate — workflows with highest failure percentage.
  • Top 10 by volume — most frequently triggered workflows.
  • Trigger type distribution — breakdown of record_event / webhook / schedule / manual.

Per-Workflow Metrics

On any workflow detail page → Analytics tab:

MetricDescription
Total runsCount of all executions in the window.
CompletedRuns ending in completed.
FailedRuns ending in failed.
CancelledRuns cancelled before completion.
Success ratecompleted / (total - cancelled) × 100%.
p50 durationMedian execution time in ms.
p95 duration95th percentile execution time.
p99 duration99th percentile execution time.
Max durationSlowest single run.
Avg queue timeTime spent in queued state before execution started.
Retry rate% of runs that were retried at least once.
Error breakdownPie chart of error types and failed node IDs.
Node execution heatmapHow often each node executes and its average duration.

Node Execution Heatmap

The heatmap overlays the workflow canvas with color-coded statistics per node:

  • Green → Red gradient: frequency of execution (green = rarely executed, red = always executed).
  • Error overlay: toggle to show error rate per node instead of frequency.
  • Duration overlay: toggle to show average execution time per node — identifies bottlenecks.
  • Click any node in heatmap mode to see its execution history, error breakdown, and average input/output size.

SLA Compliance Tracking

For workflows that implement SLA-sensitive processes (incident resolution workflows, catalog fulfillment workflows), the Analytics tab shows:

  • SLA compliance rate over time (% of runs completing within the configured target duration).
  • Runs that exceeded the SLA threshold, with links to the individual execution records.
  • Trend line showing whether compliance is improving or degrading.

Configure the SLA target in the workflow metadata: Workflow Settings → SLA Target (ms).

Metric Alerts

Set alerts on workflow metrics at Workflow → Analytics → Add Alert:

json
{
  "metric": "error_rate",
  "condition": "gt",
  "threshold": 5,          // %
  "window": "1h",
  "notify": {
    "channel": "slack",
    "to": "platform-engineering",
    "template": "workflow-error-alert"
  }
}

Metrics API

GET
/api/workflows/metrics

Aggregate metrics across all workflows (totals, top failing workflows/nodes, workspace breakdown, 7-day daily trend).

GET
/api/workflows/:id/metrics

Per-workflow metrics over its last 200 executions.

GET
/api/workflows/metrics/by-workflow

Execution counts, success/error rate, and avg duration grouped by workflow.

GET
/api/workflows/metrics/slow-nodes

Slowest node types by average duration, across workflows.

GET
/api/workflows/metrics/error-hotspots

Node types with the most errors, across workflows.

GET
/api/workflows/metrics/volume-trend

Execution volume and success/failure counts over time (hour or day granularity).

bash
# Example: per-workflow metrics (based on its last 200 executions)
GET /api/workflows/wf_01HX.../metrics

# Example: workspace-wide volume trend for the last 7 days
GET /api/workflows/metrics/volume-trend
  ?from=2026-05-25&to=2026-06-01
  &granularity=day