- API Reference
- endpoint
- Workflows
Workflows Metrics
Workflows Metrics
GET /v1/workflows/{workflow_name}/metrics
Get Workflow Metrics
Get comprehensive metrics for a specific workflow.
Args: workflow_name: The name of the workflow type to get metrics for start_time: Optional start time filter (ISO 8601 format) end_time: Optional end time filter (ISO 8601 format)
Returns: WorkflowMetrics: Dictionary containing metrics:
- execution_count: Total number of executions
- success_count: Number of successful executions
- error_count: Number of failed/terminated executions
- average_latency_ms: Average execution duration in milliseconds
- retry_rate: Deprecated, always -1. Never measured retries; use error_count instead
- latency_over_time: Time-series data of execution durations
Example: GET /v1/workflows/MyWorkflow/metrics GET /v1/workflows/MyWorkflow/metrics?start_time=2025-01-01T00:00:00Z GET /v1/workflows/MyWorkflow/metrics?start_time=2025-01-01T00:00:00Z&end_time=2025-12-31T23:59:59Z
Parameters
workflow_name
stringpath* requiredstart_time
date-time | nullqueryFilter workflows started after this time (ISO 8601)
end_time
date-time | nullqueryFilter workflows started before this time (ISO 8601)
Responses
Successful Response
Scalar metric with a single value.
ScalarMetric
Scalar metric with a single value.
value
integer | number* requiredScalar metric with a single value.
ScalarMetric
Scalar metric with a single value.
value
integer | number* requiredScalar metric with a single value.
ScalarMetric
Scalar metric with a single value.
value
integer | number* requiredTime-series metric with timestamp-value pairs.
TimeSeriesMetric
Time-series metric with timestamp-value pairs.
value
array<array<integer | integer | number>>* requiredScalar metric with a single value.
ScalarMetric
Scalar metric with a single value.
value
integer | number* requiredScalar metric with a single value.
ScalarMetric
Scalar metric with a single value.