---
title: Recommended ECS alert conditions
source: https://docs.newrelic.com/docs/infrastructure/elastic-container-service-integration/ecs-integration-recommended-alert-conditions
---

New Relic's [ECS integration](https://docs.newrelic.com/docs/introduction-amazon-ecs-integration) reports and displays performance data from your [Amazon ECS](https://docs.aws.amazon.com/ecs/index.html) environment. This document provides some recommended alert conditions for monitoring ECS performance.

## Recommended alert conditions [#alerts]

Here are some recommended ECS alert conditions. To add these alerts, go to the [alerts UI](https://one.newrelic.com/alerts/) and add the following [NRQL alert conditions](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/create-alert-conditions-nrql-queries) to an existing or new alert policy:

-   High CPU usage

    -   NRQL: `FROM ContainerSample SELECT cpuUsedCoresPercent`
    -   Critical: > 90% for 5 minutes
-   High memory usage

    -   NRQL: `FROM ContainerSample SELECT memoryUsageBytes / memorySizeLimitBytes`
    -   Critical: > 80% for 5 minutes
-   Restart count

    -   NRQL: `FROM ContainerSample SELECT max(restartCount) - min(restartCount)`
    -   Critical: > 5 for 5 minutes
