When the matching rule in a notification policy is triggered, Managed Service for Prometheus sends alert notifications to the contacts that you specified. Alert notifications can be sent by using phone calls, text messages, and emails.
Create a contact
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, choose .
On the Contacts tab, click Create Contact in the upper-right corner.
In the Create Contact dialog box, configure the parameters and click OK. The following table describes the parameters.
Parameter
Description
Name
The name of the contact.
Phone Number
After you set the mobile phone number of a contact, alert notifications can be sent by phone or text messages.
NoteYou can specify only verified mobile phone numbers in a notification policy. For more information about how to verify a mobile phone number, see Verify a mobile phone number.
Email
After you specify the email address of a contact, the contact can be notified by email.
Contact Group
The contact group to which the contact belongs.
Method to Resend Notifications If Phone Notifications Fail
The method that is used to resend notifications if phone notifications fail.
You can specify a global default setting for this parameter on the Contacts tab. For more information, see Specify a default method to resend notifications.
ImportantYou must specify at least one of the mobile phone number, Email address, and DingTalk chatbot. Each mobile phone number or email address can be used by only one contact. Otherwise, alert notifications may not be processed by the relevant contact at the earliest opportunity.
Verify a mobile phone number
Before you can specify a mobile phone number in a notification policy, you must verify the mobile phone number.
Log on to the Managed Service for Prometheus console. In the left-side navigation pane, choose .
On the Contacts tab, select one or more contacts whose mobile phone numbers you want to verify.
To verify the mobile number of a single contact, find the contact and click Not Verified next to the phone number.
To verify the mobile phone numbers of multiple contacts at a time, select the contacts and click Verify Mobile Numbers.
Then, the system sends text messages to the contacts for verifying their mobile phone numbers.
Use a browser to visit the URL that is contained in the text message.
On the verification page that appears, check the mobile phone number and click Verify.
Specify a default method to resend notifications
You can specify a default method to resend notifications if notifications by phone calls fail.
On the Contacts tab, choose .
In the dialog box that appears, select the method to resend notifications and click OK.
Manage contacts
After you create contacts, you can search for, modify, and delete the contacts on the Contacts tab.
To search for contacts, perform the following operations: On the Contacts tab, enter a keyword in the search box on the left side of the Contact tab and click the icon.
To modify a contact, perform the following operations: On the Contacts tab, find the contact that you want to modify and click Edit in the Actions column. In the dialog box that appears, modify the information and click OK.
To delete a contact, perform the following operations: On the Contacts tab, find the contact that you want to delete and click Delete in the Actions column. In the message that appears, click OK.
To delete multiple contacts at a time, perform the following operations: On the Contacts tab, select multiple contacts that you want to delete and click Batch Delete in the lower-left corner. In the message that appears, click OK.