Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Application Load Balancer
  • Getting started
    • All guides
    • Creating Application Load Balancer infrastructure through a wizard
      • Creating an L7 load balancer
      • Editing an L7 load balancer
      • Getting information about an L7 load balancer
      • Viewing L7 load balancer statistics
      • Setting up alerts
      • Viewing L7 load balancer logs
      • Setting up L7 load balancer logging
      • Getting a log group ID of an L7 load balancer
      • Stopping and starting an L7 load balancer
      • Moving a VM to a target group in a different availability zone
      • Deleting an L7 load balancer
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes
  1. Step-by-step guides
  2. L7 load balancers
  3. Setting up alerts

Setting up alerts

Written by
Yandex Cloud
Updated at June 29, 2026
View in Markdown

Alerting allows you to monitor changes in metrics and notifies you when they hit critical levels using periodic queries known as alerts. When metrics reach threshold values, the system sends a notification via the specified communication channel, e.g., by email or messenger.

To configure alerting:

  1. Create a notification channel.
  2. Select metrics and labels for monitoring.
  3. Create an alert.

Let's consider an example of creating an alert that notifies you when a service becomes unavailable.

The alert will trigger when the number of failed requests reaches 50% or more of the total requests. Such an alert helps detect DDoS attacks or infrastructure failures.

Let's use letters to indicate the number of incoming requests per second:

  • A: Total requests.
  • B: Failed requests.

Let's set up our alerts:

  • B reaches 30% of A: Warning.
  • B reaches 50% of A: Alarm (critical level).

Creating a notification channelCreating a notification channel

  1. In the management console, select the folder on the left.

  2. Navigate to Monitoring.

  3. Select Notification channels.

  4. Click Create channel.

  5. Specify the channel name, notification method, and recipients.

    Note

    To get notifications, the user must:

    • Have the monitoring.viewer role for the folder with the configured alert.
    • In the management console settings:
      • Enable Monitoring.
      • Specify an email address, phone number, and Telegram account or group.
  6. Click Create.

Selecting metrics for monitoringSelecting metrics for monitoring

  • We will get the A value using the load_balancer.requests_count_per_second metric.
  • We will get the B value using the load_balancer.requests_count_per_second metric filtered by the code = 503 label.
  • We will calculate the B to A ratio (in percent) using the 100 * B / A formula and save it as C.

Creating an alertCreating an alert

  1. On the Monitoring home page, click Create alert.

  2. Name your alert, e.g., unavailable_service.

  3. Under Alerts config, describe your query to get the A value:

    1. Next to , add the following parameters:
      • service = Application Load Balancer
      • name = load_balancer.requests_count_per_second
      • load_balancer = <load_balancer_name>
    2. Next to , set the replace_nan(0) function to replace missing data with 0, ensuring a continuous chart.
  4. Click Add query.

  5. Describe your query to get the B value:

    1. Specify the data to collect:
      • service = Application Load Balancer
      • name = load_balancer.requests_count_per_second
      • code = 503
      • load_balancer = <load_balancer_name>
    2. Set the replace_nan(0) function.
  6. Click Add query.

  7. Describe you query for C to get the B to A ratio in percent:

    1. Click to switch to text mode to edit the query.
    2. Enter 100 * B / A in the query string.
  8. Under Alert condition, specify:

    • Query to evaluate: C
    • Aggregation function: All values
    • Warning: 30
    • Alarm: 50 (critical level)
    • Evaluation window: 30 seconds
    • Evaluation delay: 15 seconds
  9. Leave the default values under No data policy.

  10. Optionally, under Annotations, add the information to log when the alert triggers.

  11. Under Notifications, add the notification channel.

  12. Click Create.

Was the article helpful?

Previous
Viewing L7 load balancer statistics
Next
Viewing L7 load balancer logs
© 2026 Direct Cursus Technology L.L.C.