By default, alert notifications for an ApsaraMQ for 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, exceptions may not be handled at the earliest opportunity. ApsaraMQ for Kafka provides the alert contact feature. You can add contacts and configure settings to send alert notifications to the contacts by using text messages, DingTalk, and webhooks.
Add an alert contact
Log on to the ApsaraMQ for Kafka console.
In the left-side navigation pane, choose .
On the Alert Contacts page, click Add Contact.
In the Add Contact panel, configure the parameters and click OK. The following table describes the parameters.
Parameter
Description
Name
The contact name.
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.
NoteThe phone number of each contact 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 are sent to the DingTalk group. For more information, see Obtain the webhook URL of a DingTalk chatbot.
Alerting Instance
The instance for which you want to configure alert notifications. You can select multiple instances. If you do not specify this parameter, 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. The time range is accurate to hours. If you specify an alert period, ApsaraMQ for Kafka sends alert notifications that are generated during the day within the specified time range.
If you do not specify an alert period, ApsaraMQ 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. You can also configure the contact to receive alert notifications on a daily basis or only every business day.
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 only every business day.
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 configurations based on your business requirements.
On the Alert Contacts page, find the contact that you want to modify and click Modify Contact in the Actions column.
In the Modify Contact panel, modify the contact information.
Delete an alert contact
If you no longer require a contact, you can delete the contact.
On the Alert Contacts page, find the alert contact that you want to delete and click Delete in the Actions column.
In the message that appears, click OK.
References
For information about scenarios in which alert notifications are sent, see CloudMonitor and View risks on an instance.