This topic describes how to add contacts, modify contact information, and delete contacts for alert notifications.

Background information

By default, alert notifications for an Message Queue for Apache Kafka instance are sent to the owner of the Alibaba Cloud account to which the instance belongs. If the owner of the Alibaba Cloud account is not an O&M engineer or a developer, you cannot be notified of and handle the alerts at the earliest opportunity. Message Queue for Apache Kafka provides the alert contact feature. You can add contacts and configure the system to send alert notifications to the contacts by using text messages, DingTalk, and webhooks.

Add an alert contact

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the left-side navigation pane, click Alert Contacts.
  3. On the Alert Contacts page, click Add Contact.
  4. In the Add Contact panel, configure the parameters, and then click OK.
    Parameter Description
    Name The name of the contact.
    Mobile Number The mobile phone number of the contact. This phone number is used to receive alert notifications that are sent by using text messages.
    Note The phone numbers of contacts must be unique.
    DingTalk Chatbot The webhook URL of the DingTalk chatbot. After you specify the webhook URL of the DingTalk chatbot for a contact, alert notifications can be sent to the DingTalk group.
    Alerting Instance The instance for which you want to configure alert notifications. You can select multiple instances. If you do not select instances, the contact can receive alert notifications for all instances that belong to your Alibaba Cloud account.
    Alert Period The time range during which the system can send alert notifications. This time range is accurate to hours. If you specify an alert period, Message Queue for Apache Kafka sends alert notifications within the specified time range. The system sends notifications only for alerts that are generated within the specified time range.

    If you do not specify an alert period, Message Queue for Apache Kafka sends an alert notification when an issue is detected.

    Status The pattern based on which the contact receives alert notifications. You can disable the contact from receiving alert notifications, or you can configure the contact to receive alert notifications on a daily basis or every business day from Monday to Friday.
    • Disable Receiving Termination: The contact no longer receives alert notifications.
    • Daily: The contact receives alert notifications on a daily basis.
    • Monday to Friday: The contact receives alert notifications every business day from Monday to Friday.
    On the Alert Contacts page, you can view the contact that you added.

Modify an alert contact

After you add a contact, you can modify the contact information or alert configuration based on your business requirements.

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the left-side navigation pane, click Alert Contacts.
  3. On the Alert Contacts page, find the contact that you want to modify, and click Modify Contact in the Actions column.
  4. In the Modify Contact panel, modify the contact information.

Delete an alert contact

If you no longer need a contact, you can delete the contact.

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the left-side navigation pane, click Alert Contacts.
  3. On the Alert Contacts page, find the contact that you want to delete, and click Delete in the Actions column.
  4. In the message that appears, click OK.