By default, ApsaraMQ for Kafka sends alert notifications only to the Alibaba Cloud account owner. If the account owner is not an operations engineer or developer, issues such as consumer lag spikes or broker storage exhaustion may go unnoticed until they affect production workloads. Add alert contacts to route notifications to the team members who can act on them, and control when and how each person is notified.
Each contact receives notifications through SMS, DingTalk chatbot webhooks, or both. You can scope contacts to specific instances and restrict notifications to certain hours or business days.
Prerequisites
Before you begin, ensure that you have:
An ApsaraMQ for Kafka instance
The mobile phone number or DingTalk chatbot webhook URL for each contact you want to add
(Optional) A list of specific instances to scope alerts to
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 following parameters, and then click OK.
Parameter
Description
Name
The display name for this contact.
Mobile Number
The mobile phone number for receiving SMS alert notifications. Each contact must have a unique phone number.
DingTalk Chatbot
The webhook URL of a DingTalk chatbot. When specified, alert notifications are posted to the associated DingTalk group. For details, see Obtain the webhook URL of a DingTalk chatbot.
Alerting Instance
One or more instances to receive alerts for. If left blank, the contact receives alerts for all instances under your Alibaba Cloud account.
Alert Period
The daily time window, in hours, during which notifications are sent. If left blank, notifications are sent immediately when an issue is detected.
Status
The notification schedule for the contact. Disable Termination Notifications -- the contact stops receiving notifications. Daily -- the contact receives notifications every day. Monday to Friday -- the contact receives notifications on business days only.
The new contact appears on the Alert Contacts page after you click OK.
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 target contact and click Modify Contact in the Actions column.
In the Modify Contact panel, update the contact information or alert settings, and then click OK.
Delete an alert contact
If you no longer require a contact, you can delete the contact.
On the Alert Contacts page, find the target contact and click Delete in the Actions column.
In the confirmation dialog box, click OK.
What triggers alert notifications
Alert contacts receive notifications for events detected by CloudMonitor metrics and instance risk checks. To configure which metrics and thresholds trigger alerts, see the following topics:
Monitoring and alerting -- configure monitoring metrics and alert rules for your Kafka instances
View risks on an instance -- identify and resolve potential issues before they trigger alerts