> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/platform/workspaces/insights.md).

# Workspace Insights

{% hint style="warning" %}
**BETA**

The Insights tab is currently **pending release**. Contact [Harness Support](mailto:support@harness.io) to request access.
{% endhint %}

The **Insights** tab consolidates the actionable findings for a workspace in one place. It surfaces resources that have drifted from your OpenTofu or Terraform configuration and, when Cloud Cost Management is connected, cost optimization opportunities for the resources in that workspace. From each insight, you can generate a remediation pull request with the [IaCM Remediation Agent](/infrastructure-as-code-management/platform/workspaces/remediation-agent.md).

![Insights tab for a workspace](/files/SGDSkcIOHUbNn0qUvYSm)

***

### What you will learn from this topic <a href="#what-you-will-learn-from-this-topic" id="what-you-will-learn-from-this-topic"></a>

* How to open the Insights tab and read its summary cards.
* The difference between open and applied insights.
* How drift insights and cost optimization insights appear.
* How to start a fix with the **Apply with agent** button.

***

### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* **A provisioned workspace:** The Insights tab appears on an existing workspace. Go to [Create a workspace](/infrastructure-as-code-management/platform/workspaces/create-workspace.md) to create one.
* **Cloud Cost Management Integration (optional):** Cost optimization insights appear only when Cloud Cost Management is connected to the workspace. Go to [Workspace Overview](/infrastructure-as-code-management/platform/workspaces/workspace-overview.md) to enable the **Cloud Cost Management Integration** toggle in your workspace configuration.

***

### Open the Insights tab <a href="#open-the-insights-tab" id="open-the-insights-tab"></a>

Navigate to your workspace and select the **Insights** tab. The tab opens on the **Open** insights, with a count of open and applied insights shown at the top.

* **Open:** Insights that have been detected but not yet remediated.
* **Applied:** Insights that have been remediated. After you run the Remediation Agent against an open insight, it moves from **Open** to **Applied**.

***

### Insight summary cards <a href="#insight-summary-cards" id="insight-summary-cards"></a>

The cards at the top of the tab summarize the current insights for the workspace.

* **All Insights:** The total number of insights detected for the workspace.
* **Optimization opportunity:** The estimated monthly savings across all cost recommendations, with the number of recommendations that contribute to it.
* **Resources drifted:** The number of resources that have drifted from your configuration.

***

### Insight details <a href="#insight-details" id="insight-details"></a>

Each row in the insights list represents one finding. The columns describe the resource and the recommended fix.

* **Resource Name:** The affected resource. For drift, this shows **Drift detected**.
* **Recommended Action/Resource:** The suggested fix, such as **Drift reconciliation** for a drifted resource, along with the resource identifier.
* **Saving Opportunity:** The estimated monthly savings for a cost recommendation. This is empty for drift insights.
* **Monthly Spend:** The current monthly spend for the resource, when cost data is available.

#### Drift insights <a href="#drift-insights" id="drift-insights"></a>

When a resource drifts from your OpenTofu or Terraform configuration, it appears as a **Drift detected** row with a **Drift reconciliation** recommended action. Click **Apply with agent** to generate a remediation pull request with the [IaCM Remediation Agent](/infrastructure-as-code-management/platform/workspaces/remediation-agent.md).

![Drift detected insight with Apply with agent button](/files/SX1HGfU39QmahLEWS59r)

Go to [Drift detection](/infrastructure-as-code-management/platform/iacm-pipelines/operations-overview.md) to understand how Harness IaCM detects drift.

#### Cost optimization insights <a href="#cost-optimization-insights" id="cost-optimization-insights"></a>

If you have enabled the **Cloud Cost Management Integration** for your workspace, the Insights tab also surfaces cost optimization recommendations for the workspace resources, such as the estimated saving opportunity and current monthly spend. Click **View details in CCM** to open the recommendation in the Cloud Cost Management module.

***

### Apply with agent <a href="#apply-with-agent" id="apply-with-agent"></a>

Each open insight includes an **Apply with agent** button. Click it to generate a remediation pull request with the IaCM Remediation Agent. Harness opens the **Run Pipeline** panel with the remediation pipeline and the affected insight preselected, so you can run remediation for that specific resource. **Apply with agent** does not directly modify your infrastructure. It generates a pull request with recommended changes for you to review and merge.

Go to [IaCM Remediation Agent](/infrastructure-as-code-management/platform/workspaces/remediation-agent.md) to review the full remediation flow.

***

### Next steps <a href="#next-steps" id="next-steps"></a>

The Insights tab gives you a single view of what needs attention in a workspace and a one-click path to remediate it.

* Go to [IaCM Remediation Agent](/infrastructure-as-code-management/platform/workspaces/remediation-agent.md) to remediate drift with the agent.
* Go to [Drift detection](/infrastructure-as-code-management/platform/iacm-pipelines/operations-overview.md) to configure drift detection.
* Go to [Workspace Overview](/infrastructure-as-code-management/platform/workspaces/workspace-overview.md) to connect Cloud Cost Management to your workspace.
