[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Logging](../index.md) > [Tutorials](index.md) > Monitoring of event logging to a log group

# Configuring responses in Cloud Logging and Yandex Cloud Functions

# Monitoring event logging to a log group

Monitoring specific log group metrics helps you spot potential issues early and prevent data loss.

Each log group includes predefined monitoring charts with the following information:

* **Records**: Group of charts showing record processing:
  * **Records successfully ingested**: Number of successfully ingested records.
  * **Records saved**: Number of saved records.
  * **Records read**: Number of read records.
  * **Records ingest errors**: Number of record ingestion errors.
  * **Records save lag**: Delay between ingesting and saving records.
  * **Records read errors**: Number of record read errors.

* **Requests**: Group of charts for data ingestion requests:
  * **Ingest requests**: Number of data ingestion requests.
  * **Ingest requests errors**: Number of data ingestion request errors.
  * **Ingest requests duration**: Average duration of data ingestion requests.

To monitor log group metrics along with other relevant indicators, e.g., [Audit Trails](../../audit-trails/tutorials/alerts-monitoring.md) events, display all of them on a single Monitoring dashboard.

Add a chart for the `group.service.ingested_records_per_second` [metric](../../monitoring/metrics-ref/logging-ref.md) to the dashboard to display the actual rate of log ingestion into the log group. Comparing this value with the `Maximum write speed` [quota](../concepts/limits.md#logging-quotas) helps determine whether the log stream is hitting its limit. Additional `group.service.ingest_requests_per_second` chart filtered by `ERROR` status enables detecting write errors promptly.

{% list tabs group=instructions %}

- Monitoring UI {#console}

  1. In the [management console](https://console.yandex.cloud), select **Monitoring**.
  1. Navigate to the **Dashboards** tab.
  1. Next to the dashboard name, click ![image](../../_assets/console-icons/ellipsis.svg) and select **Edit**.
  1. In the bottom section, click **Graph**.
  1. Create a query to monitor storage usage:

      1. In the query editor, click ![image](../../_assets/console-icons/plus.svg).
      1. In the list of services (**service=**), select `Cloud Logging`.
      1. In the **name=** metric list, select `group.service.ingested_records_per_second`.
      1. In the label list, select the log group (**group=**).

  1. Click **Add query** and follow the same steps to create a query to display the maximum bucket size: in the **name=** metric list, select `group.ingest_requests_per_second`, and in **status=**, `ERROR`.
  1. Click **Execute query** to check the chart display.

  1. Name the chart and add a threshold:

      1. In the chart area, click ![image](../../_assets/console-icons/gear.svg) **Settings**.
      1. In the panel that opens, expand **General**.
      1. In the **Title** field, specify a chart name, e.g., `Bucket Used Space`.
      1. Expand **Thresholds**.
      1. Click **Add threshold**.
      1. Specify `Maximum write speed quota` for the threshold name and select a color.
      1. Close the chart settings panel.

  1. Click **Save** at the top right.

{% endlist %}