Create custom alerts and rules for all of your clusters with 50+ available metrics under our MongoDB hosting plans in just a few clicks:
MongoDB Cluster-Level Alert Rules
Want to set alert rules for one specific cluster? Check out our MongoDB Account-Level Rules doc to learn more.
Overriding Global Alert Rules
Account-Level Alert Rules will override any Global Alert Rule created on the same metric.
The MongoDB account-level rules are enforced by you and apply to all MongoDB clusters in your ScaleGrid account based on database type. You can configure account level rules under:
Settings > Global Rules > Alert Rules
- Log into the ScaleGrid console, and find your Settings page in the left-side menu.
- Select Rules from the left-side menu, then click the Alert Rules tab.
- Click the 'New Cluster Rule' button to get started:
The procedure for creating an account-level alert rule is the same as of the cluster level. The only difference is that cluster-level rules are applied at the cluster level, but the account-level rules are applied to all clusters across a specific database.
- Once the account-level MongoDB new alert rule wizard opens, you can select the alert type: Metric, Disk Free (%), or Server Role Change, and configure the parameters for the alert.
Alert Metrics Details
- Disk Free alerts are set at 20% by default.
- A Server Role Change is triggered when a new master is elected.
- Once you've configured your MongoDB account-level alert rule type, you can select how you would like to be notified of the alert. ScaleGrid supports email (by default), SMS text, PagerDuty, Opsgenie and Slack.
PagerDuty and Mobile SMS Notifications
For PageDuty and SMS text notifications to work for your PostgreSQL alert rules, you need to add a PageDuty key and a phone number in your Settings. You can add a key by visiting: Settings > Notifications > PagerDuty or Phone Numbers.
- Once the alert rules have been created, click the Save button and you're done! Give it a minute or two before the alerts show up in the Cluster Details page.
Editing Alert Rules
You can edit the rule you created and change the threshold and notification params, but the alert type cannot be edited. If you would like to edit the alert type, you need to delete the rule and start over.
Deleting Alert Rules
Please note that alert rules can only be deleted if there are no alerts of its type. For example, if you have a Disk Space alert and you try to delete the Disk Space rule, it won't be deleted.
Updated 6 months ago