Configure a custom alert policy

更新时间:
复制 MD 格式

You can monitor your Logstash clusters and configure custom alert rules and notification methods. To prevent service disruptions from issues such as an abnormal cluster status or high node disk usage, set up alerts. Alerts let you monitor your cluster's health and key metrics in real time, allowing you to take preemptive action. This topic describes how to configure a custom alert policy for a Logstash cluster.

Background

Logstash provides cluster monitoring features. Configuring them gives you real-time insights into your cluster's health, improving operational efficiency and system reliability.

Currently, you can configure alerts in CloudMonitor for the following four metrics:

  • Node disk usage

  • Node memory usage

  • Node CPU utilization

  • Node 1-minute load average

Procedure

  1. Navigate to the CloudMonitor console.

    1. Log in to the Alibaba Cloud Elasticsearch console.

    2. In the top navigation bar, select a region.

    3. In the left-side navigation pane, click Logstash Clusters. On the Logstash Clusters page, click the ID of the target cluster.

    4. In the left-side navigation pane, click Cluster Monitoring.

    5. In the Monitoring and Alerting Configuration section, click Go to CloudMonitor.

  2. Click Create Alert Rule. In the Create Alert Rule panel, configure the alert rule.

    The following table shows an example configuration. For parameters not mentioned, keep the default settings. For more information about the parameters, see Create an alert rule.

    Parameter

    Description

    Product

    Select AliyunLogstashService.

    Resource Range

    Select Cluster.

    Related Resource

    Select the cluster that you want to monitor.

    Desciption

    1. Click Add Rule and select Combined Metrics.

    2. In the Configure Rule Description panel, enter a name in the Alert Rule Name field and configure the following parameters:

      • Metric Type: Select Combined Metrics.

      • Alert Level: Select Warning.

      • Multi-metric Alert Condition: Define the conditions for your metrics.

      • Relationship Between Metrics: Select Generate alerts if one of the conditions is met (||).

      • Alert Threshold Triggers: Select 3 Consecutive Cycles (1 Cycle = 1 Minute).

    Alarm Contact Group

    Select an existing alert contact group. To learn how to create an alert contact group, see Create an alert contact or alert contact group.

    You can also expand Advanced Settings and enter a publicly accessible URL in the Alert Callback field. CloudMonitor sends alert notifications to this URL through a POST request. Only the HTTP protocol is supported. For more information, see Use the alert callback feature for threshold-triggered alerts.

  3. Click OK.

  4. View the Logstash dashboard.

    After the configuration is complete, CloudMonitor collects monitoring data from the Logstash cluster while it is running. When a metric value exceeds the specified threshold, CloudMonitor sends you an alert notification. You can view the Logstash dashboard by following these steps:

    1. In the left-side navigation pane of the CloudMonitor console, choose Dashboard > Cloud Service Monitoring Dashboard.

    2. Select the AliyunLogstashService product and choose a region.

    3. Select a cluster and a time range to view its monitoring dashboard.

      image