[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for YDB](../index.md) > [Step-by-step guides](index.md) > Monitoring a database state

# Monitoring a database state

You can find the database state details in the management console. You can view them on the **Monitoring** tab of the database management page or in Yandex Monitoring.

Diagnostic information about the database state is shown as charts. Charts update every minute.

{% note info %}

The most appropriate multiple units (MB, GB, and more) are automatically used in charts.

{% endnote %}


You can [configure alerts](#monitoring-integration) in Yandex Monitoring to get notified about database failures. In Yandex Monitoring, there are two trigger thresholds: `Warning` and `Alarm`. If the specified threshold is exceeded, you will get alerts via the configured [notification channels](../../monitoring/concepts/alerting.md#notification-channel).


## Viewing monitoring charts {#monitoring-database}

To view detailed information about the Managed Service for YDB database state:

1. In the [management console](https://console.yandex.cloud), select the folder the database resides in.
1. Navigate to **Managed Service for&nbsp;YDB**.
1. Click the database name and open the **Monitoring** tab.
1. To get started with Yandex Monitoring metrics, dashboards, or alerts, click **Open in Monium** in the top panel.

On the page that opens, you will see the database state charts.

## Integration with Yandex Monitoring {#monitoring-integration}

To set up alerts for database state indicators:

1. [Create an alert](../../monitoring/operations/alert/create-alert.md).
1. Add a state metric.
1. Set the alert threshold values in the alert settings.

For more information about the Managed Service for YDB state metrics, see the [metric reference](../../monitoring/metrics-ref/ydb-ref.md).