# How to Create Alerts and Set Up Monitoring in App Platform App Platform is a fully managed Platform-as-a-Service (PaaS) that deploys applications from Git repositories or container images. It automatically builds, deploys, and scales components while handling all underlying infrastructure. In addition to [viewing insights](https://docs.digitalocean.com/products/app-platform/how-to/view-insights/index.html.md), you can monitor and set up alerts for certain events. App Platform provides the following app-level and resource-level alerts: - **App alerts**: The following events can trigger app-level alerts: - Started deployment - Failed deployment - Cancelled deployment - Successful deployment - Failed domain configuration - Successful domain configuration - Failed to scale - Successful scaling - Failed job invocation - **Metric alerts for app resources**: The following metrics can trigger resource-level alerts: - CPU - RAM - Restart count - Function activation count - Function average duration - Function average wait time By default, when you create a new app, App Platform creates email alerts for failed deployments and failed domain configurations. **Note**: App Platform may occasionally redeploy apps for infrastructure maintenance. If you have alerts configured for deployments, you may receive alerts when apps are redeployed due to maintenance. ## Set Up App Alerts To manage alert policies, go to the [**Apps** page](https://cloud.digitalocean.com/apps), select your app, then click the **Settings** tab. In the **Alert Policies** section, click **Edit**. Click an alert to expand it, then enable or disable it. Set the notification method to be email or Slack. When finished, click **Save**. ![Edit app-level alerts](https://docs.digitalocean.com/screenshots/app-platform/edit-app-alerts.c35357a7ff1d37d4e207ff08a80a1ff70eb2aa1039de285619151889644a8111.png) ## Monitor Resource Metrics You can configure alerts for metrics such as CPU usage, memory usage, or restart counts. Alerts are triggered when a metric is above or below a specified threshold for a defined duration. You can apply alerts to all components or only to specific ones. To set a metric alert, go to the [**Apps** page](https://cloud.digitalocean.com/apps), select your app, then click the **Settings** tab. On the **Settings** page, scroll to the **Alert Policies** section and click **Edit**. In the **INSIGHTS** section, click **Create Alert Policy**. In the **Add Alert Policy** section: - Select an option in the **Metric** dropdown menu. - Select **Above** or **Below**. - Enter a value in the **Threshold %** field. - Select an option in the **Duration** dropdown menu. - Enter an email address or click **Connect Slack** to receive alert notifications. - Select the components you want the alert policy to apply to. - Click **Save**. ![Create new metric alert](https://docs.digitalocean.com/screenshots/app-platform/new-metric-alert.5c8a2ad5547647c33258e05810c7fcb237e780d6f6170c5bfb350eb93b6a32c9.png)