Title
Create new category
Edit page index title
Edit category
Edit link
Monitor an Existing Pipeline
This guide teaches you how to monitor pipelines in production - tracking their health, performance, and execution history. You'll learn to spot problems before they become incidents and understand exactly what's happening inside your data pipelines.
Why This Matters
A pipeline that runs silently is dangerous. Without monitoring, you won't know:
If it failed overnight
If it's running slower than usual
If data quality issues are creeping in
Which step is the bottleneck
Good monitoring means catching issues in minutes, not hours or days.
Real-World Scenarios
Scenario 1: Daily Health Check
"It's 8 AM. Did our customer pipeline run successfully last night?"
Solution: Check GET /pipelines/15/latestRun to see status, duration, and any errors. Takes 5 seconds.
Scenario 2: Performance Degradation
"Our pipeline used to finish in 20 minutes, now it takes 45. What changed?"
Solution: Use GET /pipelines/15/runs?limit=30 to see the last 30 runs and spot when slowdown began. Then drill into spans to find the bottleneck.
Scenario 3: Debugging for On-Call
"I got paged at 2 AM. The pipeline failed but I need details fast."
Solution: Get latest run → list spans → find failed span → get events → get error logs. Full investigation in under 2 minutes.
Scenario 4: Capacity Planning
"Should we add more resources? Is our pipeline hitting limits?"
Solution: Analyze historical runs to see execution time trends, event counts, and identify patterns.
Prerequisites
Pipeline ID or UID you want to monitor
API credentials
Understanding of what the pipeline does
Monitoring Dashboard - API Workflow
Build a complete monitoring view using these 6 APIs:
GET /pipelines/:pipelineId/latestRun- Current statusGET /pipelines/:pipelineId/runs- Historical runsGET /pipelines/runs/:runId/spans- Execution breakdownGET /pipelines/spans/:spanId/events- Event detailsGET /pipelines/spans/events/:eventId/log- Deep logsGET /pipelines/runs/:runId/span-job-associations- Job mappings
Overview
This workflow covers:
Listing all runs for a pipeline
Getting the latest run status
Viewing span execution details
Querying span events and logs
Understanding job-span associations
APIs Used: 5 endpoints
Prerequisites
Pipeline ID or UID
API credentials
Understanding of pipeline execution concepts
Step 1: Get Latest Run Status
Check the most recent execution of your pipeline.
API Call
Response
Key Metrics
Field | Description |
|---|---|
status | Current execution status (CREATED, RUNNING, COMPLETED, FAILED) |
startedAt | When execution began |
avgExecutionTime | Average execution time in milliseconds |
successEvents | Count of successful span events |
errorEvents | Count of error events |
warningEvents | Count of warning events |
Use Cases
Dashboard displays showing current pipeline status
Quick health checks
Alerting based on execution metrics
Step 2: List All Pipeline Runs
View historical execution data for analysis.
API Call
Query Parameters
Parameter | Type | Description | Default |
|---|---|---|---|
limit | integer | Number of runs to return | 50 |
offset | integer | Pagination offset | 0 |
Example with Pagination
Response
Use Cases
Analyzing execution trends over time
Identifying performance degradation
Generating historical reports
Debugging recurring failures
Step 3: List All Spans for a Run
View the execution tree of a specific run.
API Call
Response
Use Cases
Understanding execution flow
Identifying bottlenecks
Debugging span-level issues
Visualizing execution timeline
Step 4: Get Events for a Specific Span
View detailed events that occurred during span execution.
API Call
Response
Event Types
Type | Description |
|---|---|
START | Span execution began |
END | Span execution completed successfully |
FAILED | Span execution failed |
LOG | Informational log message |
ABORT | Span execution was aborted |
Use Cases
Debugging span failures
Understanding execution steps
Tracking data quality issues
Performance analysis
Step 5: Get Detailed Event Logs
Retrieve detailed logs for a specific event.
API Call
Response
Use Cases
Investigating specific warnings or errors
Root cause analysis
Compliance and audit trails
Step 6: Get Job-Span Associations
Understand which jobs are associated with which spans.
API Call
Response
Use Cases
Mapping execution to pipeline structure
Debugging job-specific issues
Understanding execution flow
Monitoring Dashboard Workflow
Build a complete monitoring view:
Real-time Status
Execution Timeline
Drill-down Investigation
Deep Analysis
Performance Monitoring Pattern
Track execution trends:
Complete API Call Sequence
GET /torch-pipeline/api/pipelines/:pipelineId/latestRun- Current statusGET /torch-pipeline/api/pipelines/:pipelineId/runs- Historical dataGET /torch-pipeline/api/pipelines/runs/:runId/spans- Execution treeGET /torch-pipeline/api/pipelines/spans/:spanId/events- Event detailsGET /torch-pipeline/api/pipelines/spans/events/:spanEventId/log- Deep logsGET /torch-pipeline/api/pipelines/runs/:runId/span-job-associations- Job mappings
Troubleshooting
Issue | Solution |
|---|---|
No runs returned | Verify pipeline has been executed at least once |
Missing spans | Check that run ID is correct |
No events | Verify spans have recorded events during execution |
Empty logs | Check that event ID is valid |
For additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2025