# 25  Monitoring Costs and Savings

N2W Software customers have a single point of control and management over the procedure of backing up their cloud-based services and data stores. Monitoring the costs will help customers define backup plans that fit their budget and thereby avoid unexpected costs. N2W provides the following services for monitoring costs:

* **Cost Explorer** – Cost of storage that was created by N2W to hold short-term backup snapshots of the customer’s cloud-based assets.
  * Allows customers to monitor the costs by the backup processes generated by N2W.
  * Allows customers to issue monthly bills per policy backups.
  * Calculations are made for the last month by default and can be set to prior periods.
  * Breakdown of costs is found in the **Costs ($)** column of the **Policies** tab.
* **Cost Savings** – Amount of money that users can save by enabling Resource Control management.
  * Calculations are made for the next month.
  * Breakdown of savings is found in the **Cost Savings** column of the **Resource Control Groups** tab.

{% hint style="info" %}

* Cost Explorer support is currently limited to the AWS resource EBS.
* N2W uses the AWS REST API for retrieving costs for the specified policy. The Cost Explorer API allows us to programmatically query your data usage and compute the cost and usage data. It can take up to 48 hours for the cost increase to take effect.
* The costs will include both short-term and long-term backups (cross-region DR), but not snapshots that were copied onto cheaper media such as S3 and Glacier.
  {% endhint %}

In the Dashboard screen, you can find both Cost Explorer and Cost Savings information in their respective tiles:

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/EhDpehX9gCpduRB9OOim/17-1%2025%20Dashboard-cropped.png)

## 25.1 Enabling and Disabling Cost Explorer <a href="#id-25-1-enabling-and-disabling-cost-explorer" id="id-25-1-enabling-and-disabling-cost-explorer"></a>

{% hint style="info" %}
Cost Explorer is not available currently in AWS GovCloud (US).
{% endhint %}

Following are the steps necessary for using Cost Explorer:

* In AWS, activate cost allocation tags. See section [25.1.1](#25-1-1-configuring-aws-to-allow-cpm-cost-explorer-calculations).
* In N2W:
  * For CPM, select **Enable Cost Explorer** in the **Cost Explorer** tab of **General Settings**.
  * For each designated user, enable **Allow Cost Explorer**. See section [18.3](https://docs.n2ws.com/user-guide/18-user-management#18-3-user-definitions).

To disable Cost Explorer, it is sufficient to clear **Enable Cost Explorer** in the **Cost Explorer** tab.

### 25.1.1 Configuring AWS to Allow CPM Cost Explorer Calculations <a href="#id-25-1-1-configuring-aws-to-allow-cpm-cost-explorer-calculations" id="id-25-1-1-configuring-aws-to-allow-cpm-cost-explorer-calculations"></a>

To allow CPM Cost Explorer calculations in AWS, users must add cost allocation tags ***once*****.**

**To activate user cost allocation tags**:

1. Log in to the AWS Management Console at  <https://console.aws.amazon.com/billing/home#/>.
2. Open the **Billing and Cost Management** console.
3. In the navigation pane, choose **Cost Allocation Tags**.
4. Choose the following tags to activate, and then select **Activate**:

* **`cpm_server_id`**
* **`cpm_policy_name`**

{% hint style="info" %}
It can take up to 24 hours for tags to activate.
{% endhint %}

For complete details, see <http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/activating-tags.html>​

## 25.2 Monitoring Costs <a href="#id-25-2-monitoring-costs" id="id-25-2-monitoring-costs"></a>

In the **Policies** tab, you can monitor the backup costs of each policy for the last month or a different time period. The breakdown of costs per policy in dollars for the desired period appears in the **Cost ($)** column.

{% hint style="warning" %}
Cost Explorer inclusions and exclusions:

* The cost figure includes all policies that were ever backed up by N2W and does not filter out deleted policies. The costs for policies deleted during a cost period are still included in the cost figure for that period.
* N2W Cost Explorer does not include the cost of cross-account DR snapshots.
  {% endhint %}

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/Fix3wNl6eYGXeBVFE7kv/25-2%20Monitoring%20Costs-cropped.png)

If the **Allow Cost Explorer** option is not enabled for the logged-in user, or if the backup was generated within the last 24 hours, the **Cost ($)** column will show ‘N/A’. To enable Cost Explorer for a user, see section [18.3](https://docs.n2ws.com/user-guide/18-user-management#18-3-user-definitions).

### 25.2.1 Specifying a Different Time Period for Cost Calculations <a href="#id-25-2-1-specifying-a-different-time-period-for-cost-calculations" id="id-25-2-1-specifying-a-different-time-period-for-cost-calculations"></a>

You can monitor costs for a different time period by setting the **Cost Period** for all policies. The maximum period is one year. The current period is shown next to <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/0E5Qy3TtlleVvIk6U4Vi/cost%20period%20icon.png" alt="" data-size="line"> **Cost Period** in the **Policies** tab below the filters.

**To specify the period for cost calculations:**

1. Select the **Policies** tab and then select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/0E5Qy3TtlleVvIk6U4Vi/cost%20period%20icon.png" alt="" data-size="line"> **Cost Period**.
2. Select **Period**.
3. Choose the **From** and **To** dates from the calendars, selecting **Apply** after each date.

![](https://gblobscdn.gitbook.com/assets%2Fdocumentation%2F-MDo2tNeClTSaPzOlplF%2F-MDosT2g06ByHlO2snN_%2F4.png?alt=media)

## 25.3 Monitoring Expected Cost Savings <a href="#id-25-3-monitoring-expected-cost-savings" id="id-25-3-monitoring-expected-cost-savings"></a>

In the **Resource Control Groups** tab, you can monitor the expected Cost Savings for each group, based on the schedules you have set to **Turn Off** an instance or an RDS database.

{% hint style="info" %}
When the **Operation Mode** of a Resource Control Group is **Turn Off Only**, N2W will show ‘No-Data’ in the **Cost Savings** column.
{% endhint %}

{% hint style="warning" %}
Cost Savings currently is *not* supported in GovCloud regions.
{% endhint %}

![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/6RFcOGFVEzJWzk9VdQUP/25-3%20Expect%20Cost%20Save-cropped.png)

To update the screen with the current AWS savings, select <img src="https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/jcjYTiq6NxZYGqOLIlQo/refetch%20savings%20icon.png" alt="" data-size="line"> **Refetch Savings Data from AWS**, and then select **View updated data** in the data refetched message. ![](https://content.gitbook.com/content/5oB64hgFIX2jdQ2O72cF/blobs/EZGAdVzK1T3oLA7eJGIY/cost%20savings%20refetch%20msg.png)​


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.n2ws.com/user-guide/25-monitoring-costs-and-savings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
