---
title: Find and query your ECS monitoring data
source: https://docs.newrelic.com/docs/opentelemetry/integrations/ecs-monitoring/find-and-query-your-data
---

After setting up OpenTelemetry monitoring for your Amazon ECS environment, you can find and query your data across New Relic's Infrastructure and query interfaces. This guide helps you locate your ECS metrics and create meaningful queries for monitoring and troubleshooting.

## Where to find your ECS data [#find-data]

Your ECS monitoring data appears in multiple locations within New Relic, depending on the type of metrics and your ECS launch type.

### Infrastructure monitoring [#infrastructure-view]

Navigate to **[one.newrelic.com](https://one.newrelic.com) > All Capabilities > Infrastructure** to view your ECS infrastructure:

#### For ECS on EC2

1.  Hosts view: Filter by host to see your EC2 instances running ECS containers
2.  Containers view: See individual container performance within your ECS tasks

#### For ECS Fargate

1.  Containers view: Primary location for Fargate container metrics

> #### 💡 TIP
>
> Use the filter options to narrow down to specific clusters, services, or container names to quickly find the data you need.

### Metrics and events [#metrics-events]

Go to **[one.newrelic.com](https://one.newrelic.com) > Query your data** to:

-   Create custom charts and dashboards
-   Set up alerts based on specific metric thresholds

## Query examples [#query-examples]

### Monitor container CPU utilization

```sql
SELECT average(container.cpu.utilization)
FROM Metric
WHERE ClusterName = 'your-cluster-name'
AND ServiceName = 'your-service-name'
TIMESERIES AUTO
FACET container.name
```

### Track memory usage trends

```sql
SELECT max(container.memory.usage.total) / 1024 / 1024 as 'Memory (MB)'
FROM Metric
WHERE ClusterName = 'your-cluster-name'
TIMESERIES AUTO
FACET ServiceName
```

### Monitor host-level metrics (EC2 only)

```sql
SELECT average(1 - system.cpu.utilization) * 100 AS 'CPU used %',
       average(system.memory.utilization) * 100 AS 'Memory used %'
FROM Metric
WHERE aws.ecs.launchtype = 'ec2'
AND aws.ecs.cluster.arn = 'your-cluster-arn'
TIMESERIES AUTO
```

## Troubleshooting data gaps [#troubleshooting]

If you don't see expected data:

1.  **Verify collector status**: Check container logs for the OpenTelemetry collector
2.  **Confirm network connectivity**: Ensure outbound HTTPS access to New Relic
3.  **Check license key**: Verify the license key is correctly configured in SSM Parameter Store
4.  **Review task definition**: Confirm the collector container is running with proper resource allocation

## Next steps [#next-steps]

-   [Create advanced dashboards](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/introduction-dashboards/) with ECS-specific visualizations
-   [Set up intelligent alerts](https://docs.newrelic.com/docs/alerts/create-alert/create-alert-condition/alert-conditions/) for proactive monitoring
-   [Explore logs correlation](https://docs.newrelic.com/docs/logs/ui-data/use-logs-ui/) if forwarding container logs to New Relic
