This document describes how to create an alerting rule in the TMP console. With such a rule, you will receive notifications when some metrics are exceptional, so that you can take corresponding measures promptly.
Prerequisites
You have created a TMP instance.
You have installed the Prometheus agent and other monitoring components.
Directions
For more information on alerting rule, please see Alerting Rule Description.
2. In the instance list, select the corresponding Prometheus instance, click Alarm Management in the top menu bar, and enter the Alerting Rule page.
3. In the alert strategy page, click Create Alerting Rule and configure the alert strategy information in the pop-up.
4. Creation methods include: Select Template, On this page, and YAML editing. The following example uses On this page.
Instance ID/Name: Displayed by default. Users do not need to fill in this field.
Rule Name: Custom Definition Name.
Rule: Alarm rule group. Multiple rules can be added.
Rule Name: Custom name.
PromQL: Users can use the default template or customize it. It represents the alarm trigger condition based on the PromQL expression and is used to determine if any time series meets the condition.
Alert Object (Summary): Users can customize the alarm title.
Alert Message (Description): Users can use the default template or customize it.
Labels: Tags. Users can use default or custom tags. Users can specify a set of tags and attach them to alarms, and corresponding handling methods can be matched based on tags in the received alarms.
Annotations: Annotations. Users can use default or custom annotations. The annotations indicate additional alarm information.
Duration: Users can use the default duration or specify the duration. It indicates the time period after which an alarm is sent once the trigger condition is met.
Convergence Time: An alarm is triggered every 5 minutes by default, but users can specify the alarm notification sending frequency.
Alert Channel: You can choose Tencent Cloud alert channels, webhook alert channels, or self-built alertmanager alert channels.
Alert Notification: Supports custom alarm notification templates, including template name, notification type, recipient, receiving channel, etc. For details, please see Notification Template. Save the current alerting rule as a template: Users can save the alarm policy content configured on the current page as a template, which can be referenced later to quickly trigger alarms.
Was this page helpful?