> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prophecy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Pipeline Monitoring

> How to use Pipeline Monitoring for Spark

<Callout icon="/images/icon.png" color="#FFC107">
  Available for [Enterprise Edition](/data-engineering/administration/platform/editions) only.
</Callout>

You can use Pipeline Monitoring to help identify errors and failures at runtime. You can identify the cause of the failures, fix them with recommended solutions, and rerun failed or skipped tasks.

## Detect and monitor failures

After your scheduled or ad-hoc run, you can view detected failures on your pipeline. Gems with an error or warning are highlighted on the Visual canvas.

* Hover over the gem to see failure details, such as run duration and the exception.

<img src="https://mintcdn.com/prophecy-62973bd0/820NYl25fNinaqQc/data-engineering/orchestration/pipeline-monitoring/img/gem-failure-details.png?fit=max&auto=format&n=820NYl25fNinaqQc&q=85&s=af2f5a899e4ac59addf9f5da8e5d0d7b" alt="Gem failure-details" width="2620" height="1506" data-path="data-engineering/orchestration/pipeline-monitoring/img/gem-failure-details.png" />

* You can click **Open Logs** to open the Runtime Logs of that gem.

From the Runtime Logs panel, you can see other logs of the current run, including those that have succeeded. You can filter or sort the logs, and adjust the view.

* Click **More details** to see the entire exception details.

<img src="https://mintcdn.com/prophecy-62973bd0/820NYl25fNinaqQc/data-engineering/orchestration/pipeline-monitoring/img/view-runtime-logs.png?fit=max&auto=format&n=820NYl25fNinaqQc&q=85&s=daf567b9fe658c65fabd24f7b0667df8" alt="View runtime logs" width="2812" height="897" data-path="data-engineering/orchestration/pipeline-monitoring/img/view-runtime-logs.png" />

## Troubleshoot and fix problems

From the Runtime Logs panel, you can swap the tabs by clicking **Problems**. The Problems tab shows you a compilation of Warnings and Errors, where they can be found, and brief descriptions of each.

* Click the name to view the problem. A side panel will open, taking you to the error location.
* Or you can click **Fix with AI** to use a recommended solution made by Spark Copilot. And then try rerunning your task.

<img src="https://mintcdn.com/prophecy-62973bd0/820NYl25fNinaqQc/data-engineering/orchestration/pipeline-monitoring/img/view-and-fix-problems.png?fit=max&auto=format&n=820NYl25fNinaqQc&q=85&s=231a116c0a99b0bf13c8b61a0facc956" alt="View and fix problems with AI" width="2812" height="897" data-path="data-engineering/orchestration/pipeline-monitoring/img/view-and-fix-problems.png" />

## View historical runs

You can see a complete history with logs and other debugging details for all of your scheduled and ad-hoc runs.

* To view historical runs, select **Run History**.

This will take you to the Historical View of your pipeline in your particular fabric.

<img src="https://mintcdn.com/prophecy-62973bd0/820NYl25fNinaqQc/data-engineering/orchestration/pipeline-monitoring/img/view-run-history.png?fit=max&auto=format&n=820NYl25fNinaqQc&q=85&s=343da2938862f864beffe559babbd55f" alt="View run history" width="2812" height="896" data-path="data-engineering/orchestration/pipeline-monitoring/img/view-run-history.png" />

<Note>
  It may take a moment to load the Historical View since Prophecy is using your cluster to fetch the
  historical run information from your table.
</Note>

* You can view different versions of your pipeline from the dropdown, or go back to view the Run Details.

Successful runs are labeled with a :heavy\_check\_mark:, while failed runs are labeled with a :warning:.

* You can see the number of rows read and written at the top right.

<img src="https://mintcdn.com/prophecy-62973bd0/820NYl25fNinaqQc/data-engineering/orchestration/pipeline-monitoring/img/historical-monitoring-options.png?fit=max&auto=format&n=820NYl25fNinaqQc&q=85&s=60400d811d3e7cea5a72371c2550adc2" alt="Historical monitoring options and details" width="2620" height="1504" data-path="data-engineering/orchestration/pipeline-monitoring/img/historical-monitoring-options.png" />
