title | description | services | author | ms.author | manager | editor | ms.service | ms.topic | ms.date |
---|---|---|---|---|---|---|---|---|---|
Configure metrics alerts for Azure Database for PostgreSQL in Azure portal |
This article describes how to configure and access metric alerts for Azure Database for PostgreSQL from the Azure portal. |
postgresql |
rachel-msft |
raagyema |
kfile |
jasonwhowell |
postgresql |
article |
02/28/2018 |
This article shows you how to set up Azure Database for PostgreSQL alerts using the Azure portal. You can receive an alert based on monitoring metrics for your Azure services.
The alert triggers when the value of a specified metric crosses a threshold you assign. The alert triggers both when the condition is first met, and then afterwards when that condition is no longer being met.
You can configure an alert to do the following actions when it triggers:
- Send email notifications to the service administrator and co-administrators.
- Send email to additional emails that you specify.
- Call a webhook.
You can configure and get information about alert rules using:
-
In the Azure portal, select the Azure Database for PostgreSQL server you want to monitor.
-
Under the Monitoring section of the sidebar, select Alert rules as shown:
-
Select Add metric alert (+ icon).
-
The Add rule page opens as shown below. Fill in the required information:
Setting Description Name Provide a name for the alert rule. This value is sent in the alert notification email. Description Provide a short description of the alert rule. This value is sent in the alert notification email. Alert on Choose Metrics for this kind of alert. Subscription This field is prepopulated with the subscription that hosts your Azure Database for PostgreSQL. Resource group This field is prepopulated with the resource group of your Azure Database for PostgreSQL. Resource This field is prepopulated with the name of your Azure Database for PostgreSQL. Metric Select the metric that you want to issue an alert for. For example, Storage percentage. Condition Choose the condition for the metric to be compared with. For example, Greater than. Threshold Threshold value for the metric, for example 85 (percent). Period The period of time that the metric rule must be satisfied before the alert triggers. For example, Over the last 30 minutes. Based on the example, the alert looks for Storage percentage above 85% over a 30-minute period. That alert triggers when the average Storage percentage has been above 85% for 30 minutes. Once the first trigger occurs, it triggers again when the average Storage percentage is below 85% over 30 minutes.
-
Choose the notification method you want for the alert rule.
Check Email owners, contributors, and readers option if you want the subscription administrators and co-administrators to be emailed when the alert fires.
If you want additional emails to receive a notification when the alert fires, add them in the Additional administrator email(s) field. Separate multiple emails with semi-colons - [email protected];[email protected]
Optionally, provide a valid URI in the Webhook field if you want it called when the alert fires.
-
Select OK to create the alert.
Within a few minutes, the alert is active and triggers as previously described.
Once you have created an alert, you can select it and do the following actions:
- View a graph showing the metric threshold and the actual values from the previous day relevant to this alert.
- Edit or Delete the alert rule.
- Disable or Enable the alert, if you want to temporarily stop or resume receiving notifications.
- Learn more about configuring webhooks in alerts.
- Get an overview of metrics collection to make sure your service is available and responsive.