MySQL is an open source, object-relational database built with speed and reliability in mind. Its large and active developer community has created many third-party applications, tools, and libraries that expand MySQL’s functionality.
You can set alert policies based on your cluster performance metrics. Alert policies notify you when a performance metric rises above or falls below a threshold you set, and again when a metric returns to within the threshold. You can receive notifications via email or Slack.
To create an alert policy, click the name of your database cluster to go its Overview page, then click the Insights tab.
Click the Manage alert policies button to open the Manage alert policies window.
Fill out the sections in the Create alert policy tab to set up an alert:
Specify metric & set threshold. You need to specify three things in this section:
The performance metric that you want to create an alert for, like CPU usage or disk usage.
The numerical threshold above or below which the alert condition triggers, like above 70% usage or below 50% usage.
The length of time a threshold must be breached before the alert notification triggers, like 5 minutes or 1 day. The performance metric you’re alerting on is averaged over this interval to determine if it violates the threshold.
Select Clusters or tags. Choose the clusters or tags that you want the alert policy to apply to. You can also choose All clusters.
Send alerts via. Choose at least one method of notification. You can receive notifications via email (the email on your account and the email of any team members) or Slack.
Slack notifications require Slack authentication. Click Connect Slack to authenticate. Once you are authenticated to Slack, you can select any Slack team, direct message group, or individual members to which you have access.
Name and create alert policy. Give the alert policy a descriptive name, and then click Create alert policy.
It may take up to a few minutes for the newly-created alert policy to start evaluating data.
From the Insights tab, click the Manage alert policies button to open the Manage alert policies window, then click on the Existing alert policies tab.
You can see all of your existing alert policies here. If an alert is triggered, it appears in a Triggered Alerts section of this tab, and untriggered alerts are under Alert Policies.
Click an alert policy’s More menu and select Edit to modify the alert policy. You can also delete an alert policy from the More menu, which permanently removes the alert policy without confirmation.