[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Billing](../index.md) > [Step-by-step guides](index.md) > Cost optimization > Enabling notifications

# Enabling notifications 

To manage costs in Yandex Cloud, you can configure notifications using [budgets](../concepts/budget.md). 

Available budget types:
* _Cost_: Notification is sent when the cost of resources, without discounts applied, exceeds a specified usage limit.
* _Due and payable_: Notification is sent when the cost of resources, with discounts and active promo codes applied, exceeds a specified usage limit.
* _Balance_: Notification is sent when the personal account balance falls below a specified threshold.

{% note info %}

You can create a trigger that will invoke a [function](../../functions/concepts/function.md) in Cloud Functions or run a [container](../../serverless-containers/concepts/container.md) in Serverless Containers when threshold values are exceeded. Read more about [triggers for budgets](../../functions/operations/trigger/budget-trigger-create.md).

{% endnote %}


## Creating a budget {#create-budget}

To create a budget, you need the `editor` role. The `viewer` role is enough for the specified recipients to get budget notifications. For more information on access control, see [Roles](../../iam/concepts/access-control/roles.md).

To create a budget:

{% list tabs group=instructions %}

- Yandex Cloud Billing interface {#billing}

  1. Go to [**Yandex Cloud Billing**](https://center.yandex.cloud/billing/accounts).

  1. Select an account on the **Billing accounts** page.

  1. Go to the **Budgets** page and click **Create budget**.

     1. Enter the budget name.
     1. Select **Budget type**.
     1. Set **Budget amount**:

        * For the **Cost** or **Due and payable** type, specify the total usage cost.
        * For the **Balance** type, specify the account balance.

     1. For the **Cost** and **Due and payable** types, select a budget tracking period:

        * If you selected the **Custom** period, set the budget start date. The start date is the first day of the month.
        * Set the budget end date. The end date defines when the budget stops tracking usage or the account balance and sending notifications. The end date is the last day of the month. It must be within five years of the current date.

     1. Under **Notify**, select the users to notify.
     1. For the **Cost** and **Due and payable** types, define the budget **Scope**. You can select individual clouds, folders, and services to include in a set budget. By default, data is collected from all the clouds, folders, and services that the selected billing account has access to. 
     1. Set at least one utilization threshold to trigger notifications. You can specify a threshold as a percentage or a cash value and select the users to receive notifications. A budget can have multiple thresholds.
   
     {% note info %}
   
     Users listed in the **General information** section will receive notifications when each specified threshold is exceeded. Users listed when setting a threshold will only receive a notification when that specific threshold is reached.
   
     If several budget thresholds are reached at the same time, users will receive a single notification.
   
     {% endnote %}

  1. After filling in all the fields, click **Create**. This will create a budget.

- API {#api}

  To create a budget, use the [create](../api-ref/Budget/create.md) REST API method for the [Budget](../api-ref/Budget/index.md) resource or the [BudgetService/Create](../api-ref/grpc/Budget/create.md) gRPC API call.
  
{% endlist %}


## See also

* [Creating a budget trigger that invokes a Cloud Functions function to stop VM instances](../tutorials/serverless-trigger-budget-vm.md)
* [Creating triggers that invoke Cloud Functions functions to stop a VM and send Telegram notifications](../tutorials/serverless-trigger-budget-queue-vm-tg.md)