> 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/cloud-cost-management/3.0/cost-governance/anomalies/alerts-and-the-ignore-list.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Anomaly settings

Set who Harness notifies about anomalies, which cost patterns detection skips, and how anomaly cost is shown.

Anomaly settings control who Harness notifies about an anomaly, which expected cost patterns detection skips, and which anomalies Harness flags. Detection already runs without these settings.

On [Review anomalies](https://developer.harness.io/cloud-cost-management/3.0/cost-governance/anomalies/review-anomalies.md), click **Settings**. The **Anomaly settings** panel has four tabs: [**Alerts**](#alerts), [**Preferences**](#preferences), [**Ignore list**](#ignore-list), and [**Cost settings**](#cost-settings). The **Alerts** tab opens first.

![The Alerts tab in Anomaly settings](https://3362046280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgkNK1xq1Uj6rzIm2kum%2Fuploads%2Fgit-blob-ec477e308c6ffa489be4121b336288e0a27f5178%2Fanomalies-settings-alerts.png?alt=media)

## What you will learn from this topic

* How to create an anomaly alert
* How to manage the alerts you already have
* How to exclude an expected cost pattern with an ignore list rule
* How to set the cost impact that flags an anomaly
* How to set how long an anomaly stays active
* How to set the AWS, Azure, and GCP cost type used for anomalies

## Before you begin

* Verify you have anomalies in the list. Navigate to [Review anomalies](https://developer.harness.io/cloud-cost-management/3.0/cost-governance/anomalies/review-anomalies.md) to open it.
* Verify you have permission to access anomalies. Navigate to [Permissions and RBAC](https://developer.harness.io/cloud-cost-management/3.0/concepts/permissions-and-rbac.md) to review the Cloud & AI Costs roles.
* Make sure you have a cost view when an alert covers one view. Navigate to [Cost views](https://developer.harness.io/cloud-cost-management/3.0/cost-visibility/cost-views.md) to create a cost view.

## Alerts

Harness sends an alert when it detects an anomaly. Limit the alert to specific cost views, or set a higher cost impact than the detection preference.

### Create anomaly alert

Select the **Alerts** tab, then the **Create anomaly alert** form will open. You can set the name, the scope, the cost thresholds, and the channel.

![The Create anomaly alert form](https://3362046280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgkNK1xq1Uj6rzIm2kum%2Fuploads%2Fgit-blob-4d324d141a0fd50943f81f01094ea8a4f4bc36c3%2Fanomalies-settings-create-alert.png?alt=media)

To create an anomaly alert:

1. On the **Alerts** tab, click **New alert**.
2. Enter a **Name**.
3. Under **Scope**, select an option from the table below:

   | Scope option                                    | What the alert covers                            |
   | ----------------------------------------------- | ------------------------------------------------ |
   | **All account data (that I have access to)**    | Every anomaly in the cost data you can access.   |
   | **Specify cost views**, then select a cost view | Only the anomalies in the cost views you select. |
4. Under **Configure the anomaly alert**, enter both of the following. An override can only raise the values from [detection preferences](#detection-preferences).
   * **Alert when cost difference is over ($)**
   * **Alert when cost difference is over (%)**
5. Under **Specify alert channel**, enable a channel from the channel table below and configure it. Enable both channels to send the alert to Slack and email.

   The **Specify alert channel** section sets where Harness sends the alert. Enable **Slack**, **Email**, or both.

   | Channel   | What to enter                                                                                                  |
   | --------- | -------------------------------------------------------------------------------------------------------------- |
   | **Slack** | A Slack webhook URL. Click **Add channel** to add another webhook. Select the delete icon to remove a webhook. |
   | **Email** | Comma-separated email addresses.                                                                               |
6. Click **Save alert** to create the alert.

### Manage alerts

The **Alerts** tab lists every alert as a card. **Search** finds an alert by name. **Scope**, **Channels**, **Min cost ($)**, and **Min %** narrow the list.

Each card displays the following:

| Element                  | What it shows or does                                                                                                                             |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enabled** toggle       | Turn it off to keep the alert without sending notifications.                                                                                      |
| Alert name               | The alert name, who created it, and when.                                                                                                         |
| Scope and cost threshold | Displays the scope and cost threshold of the alert. Shows **(default)** next to a threshold that uses the default value.                          |
| Slack and Email channels | Select the channel summary to read the recipients.                                                                                                |
| Card actions             | <ul><li><strong>Edit</strong> (pencil icon): Change the alert settings.</li><li><strong>Delete</strong> (trash icon): Remove the alert.</li></ul> |

## Ignore list

An ignore list rule excludes a known cost pattern from later detection.

Common uses include:

* **Development and test environments:** Exclude accounts or resources where cost changes are expected.
* **Scheduled scaling events:** Exclude planned scaling.
* **Reserved Instance or Savings Plan purchases:** Exclude an one-time commitment purchase.
* **Seasonal workloads:** Exclude resources with a known periodic cost change.
* **Data processing jobs:** Exclude batch workloads with variable costs.

Ignoring one anomaly from its row menu affects only that anomaly. An ignore list rule applies to future detection. Navigate to [Review anomalies](https://developer.harness.io/cloud-cost-management/3.0/cost-governance/anomalies/review-anomalies.md) to ignore a single anomaly.

### Create ignore list rule

Select the **Ignore list** tab, then the **Create ignore list rule** form opens. You can set the name, the cloud type, and the level.

![The Create ignore list rule form](https://3362046280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgkNK1xq1Uj6rzIm2kum%2Fuploads%2Fgit-blob-22d6a35d02c6d2a88d206556c6038376d8ebbd07%2Fanomalies-settings-ignore-rule.png?alt=media)

To create an ignore list rule:

1. On the **Ignore list** tab, click **New ignore list rule**.
2. Enter a **Rule name**.
3. Under **Cloud type**, select **AWS**, **GCP**, **Azure**, or **Kubernetes**.
4. Under **Ignore list level**, select how broad the rule is. The levels depend on the cloud type.

   | Cloud type     | Levels                            |
   | -------------- | --------------------------------- |
   | **AWS**        | Account, Service, Usage type      |
   | **GCP**        | Project, Product, SKU description |
   | **Azure**      | Subscription, Meter category      |
   | **Kubernetes** | Cluster, Namespace, Workload      |

   * **Account, Project, Subscription, or Cluster:** Ignores anomalies for the selected accounts, projects, subscriptions, or clusters.
   * **Service, Product, Meter category, or Namespace:** Ignores anomalies for specific services within those accounts.
   * **Usage type, SKU description, or Workload:** Ignores anomalies at the most specific level.
5. Select every account, project, subscription, or cluster, or select specific ones. The control label matches the cloud type.
6. Click **Save** to create the rule. The rule applies to later detection.

### Manage ignore list rules

The **Ignore list** tab lists every rule as a card. Filter the list with **Search**, **Account**, and **Status**. A cloud filter, such as **GCP project**, appears when you have rules for that cloud.

Each card displays the following:

* The **Enabled** toggle, the rule name, who created it, and when.
* The scope and the level. A service-level rule also lists the services it includes.
* **Edit** and **Delete**.

Edit does not change the cloud type.

Turn off the **Enabled** toggle to keep a rule without applying it. A rule that is turned off does not affect anomaly detection.

Click **Delete** to remove a rule. You cannot restore a deleted rule. Harness does not retroactively flag the anomalies that the rule excluded.

### How ignore list rule is applied

When an ignore list rule is enabled, detection checks each potential anomaly against the active rules. Detection excludes an anomaly that matches a rule on cloud type, account, service, and usage type. The excluded cost pattern does not appear in the **Active** list. The rule applies to later detection runs.

Rules match from broad to specific:

* An account-level rule ignores anomalies for the specified accounts.
* A service-level rule ignores anomalies only for the specified services within those accounts, or within all accounts when the rule covers all of them.
* A usage-type rule is the most specific. It ignores only that usage type within the specified services and accounts.

## Preferences

**Preferences** controls which anomalies Harness surfaces. Harness flags an anomaly only when both detection conditions are met.

![Detection preferences and cost tuning on the Preferences tab](https://3362046280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgkNK1xq1Uj6rzIm2kum%2Fuploads%2Fgit-blob-a3e4019a148fc8eb7893a9f47c4a4e22d8d07dd3%2Fanomalies-settings-preferences.png?alt=media)

### Detection preferences

Select the **Preferences** tab, and then set both the values for the following parameters. Harness flags an anomaly only when the cost impact meets both.

* **Minimum cost impact ($):** The cost impact must be over this amount.
* **Minimum cost impact in percentage (%):** The cost impact must be over this percentage.

Harness does not flag an anomaly that falls under either value. Navigate to [How detection works](https://developer.harness.io/cloud-cost-management/3.0/concepts/how-anomaly-detection-works.md#how-detection-works) to read where these values apply.

### Cost tuning

Set how long an anomaly stays active, and how much history a new resource needs. Navigate to [Expected spend and baseline](https://developer.harness.io/cloud-cost-management/3.0/concepts/how-anomaly-detection-works.md#expected-spend-and-baseline) to read how these values change the baseline.

* **Anomaly persistence (days):** Update the resource baseline cost to the increased amount if the anomaly persists beyond this duration. The **Duration** column on the Anomalies page counts the days since the anomaly started.
* **Minimum history for new resources (days):** The number of days of cost history required before Harness detects anomalies on a new resource. Harness uses this history to establish a baseline for normal spending. The value must be between 3 and 14 days. A resource with less history still contributes to anomalies at the parent (service or account) level.

Click **Save** to apply the preferences. Click **Cancel** to discard your changes.

## Cost settings

**Cost settings** sets the cost type anomaly detection uses. These settings inherit their defaults from **Account settings**. A change on this tab applies to anomaly detection only, and it does not change the defaults from **Account settings**.

Harness recalculates anomaly costs for each cost type. **Cost Settings** decides which cost type the Anomalies page displays. Navigate to [Cost types](https://developer.harness.io/cloud-cost-management/3.0/concepts/how-anomaly-detection-works.md#cost-types) to read which cost types Harness stores.

![The Cost settings tab, with the AWS, Azure, and GCP cost type dropdowns](https://3362046280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgkNK1xq1Uj6rzIm2kum%2Fuploads%2Fgit-blob-980db49fcc3e96cd5334df98f5642ce6d48f2c37%2Fanomalies-settings-cost.png?alt=media)

To modify these settings, select the **Cost settings** tab, and select prefeered cost type for your cloud provider.

{% tabs %}
{% tab title="AWS" %}
**Show AWS costs as:**

| Cost type         | Description                                                                                                                                |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Amortized**     | Spreads upfront and recurring reservation costs across the billing period.                                                                 |
| **Net-amortized** | Amortized costs after discounts and credits.                                                                                               |
| **Unblended**     | Costs as they appear on your AWS bill, without modification.                                                                               |
| **Blended**       | The average cost across all accounts in a consolidated billing family.                                                                     |
| **Effective**     | Actual costs after all discounts, credits, and savings plans.                                                                              |
| **List**          | The published retail rate with no discounts applied. This is the highest cost view, before any reservations or commitments are considered. |
| {% endtab %}      |                                                                                                                                            |

{% tab title="Azure" %}
**Show Azure costs as:**

| Cost type          | Description                                                                                                          |
| ------------------ | -------------------------------------------------------------------------------------------------------------------- |
| **Actual**         | The costs incurred, without adjustment.                                                                              |
| **Amortized**      | Spreads reservation costs across the usage period.                                                                   |
| **List actual**    | The costs incurred, valued at the public list price, before any negotiated discounts.                                |
| **List Amortised** | Spreads reservation costs across the usage period, valued at the public list price, before any negotiated discounts. |
| {% endtab %}       |                                                                                                                      |

{% tab title="GCP" %}
**Show GCP costs as:**

| Cost type     | Description                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------------------------------- |
| **Cost**      | Costs calculated using the rates applicable to your Cloud Billing account, including any negotiated contract discounts. |
| **List**      | Costs calculated using the standard public list price, before any negotiated contract discounts or credits are applied. |
| {% endtab %}  |                                                                                                                         |
| {% endtabs %} |                                                                                                                         |

Click **Save** to apply the override.

## Troubleshooting

<details>

<summary>An anomaly alert arrived later in the month than the day of the anomaly</summary>

Harness sends an anomaly alert when it detects the anomaly, not when the anomaly occurred. When the cost data available at detection does not include the spike, Harness does not flag an anomaly. Cost data that arrives later in the month can include the spike. Harness reruns detection for the past 15 days, and the alert arrives after that run.

</details>

## Next steps

Navigate to [Review anomalies](https://developer.harness.io/cloud-cost-management/3.0/cost-governance/anomalies/review-anomalies.md) to review the anomalies these settings change.

{% content-ref url="/pages/4yUgmrGUeQ2QRB2DEQMS" %}
[Review anomalies](https://developer.harness.io/cloud-cost-management/3.0/cost-governance/anomalies/review-anomalies.md)
{% endcontent-ref %}

{% @harness-feedback/feedback %}
