AWS services from the AWS logo on the left navigation bar, which will take you to the screen as shown below showing all the AWS data sources available for you to choose from.
Select Amazon Managed Service for Prometheus from the list, select the AWS Region where you created the AMP workspace. This will automatically populate the AMP workspaces available in that Region as shown below.
Simply select the AMP workspace from the list and click
Add data sources.
In this section we will be importing sample Grafana dashboard that allows us to visualize metrics from a ECS environment.
Download provided sample dashboard to your computer locally (not using Cloud9). If you don’t have curl installed, please go directly to Github repository and download file manually.
curl https://raw.githubusercontent.com/aws-samples/ecsdemo-amp/main/grafana/AMP_ECS_Task_Monitoring.json -o AMP_ECS_Task_Monitoring.json
Go to the
plus sign on the left navigation bar and select
In the Import screen, click Upload JSON file and select dashboard file that you just downloaded and make sure you select your AMP data source in the drop down at the bottom and click on
Once completed, you will be able to see the Grafana dashboard showing metrics from the ECS cluster through AMP data source as shown below.
This sample dashboard visualize Amazon ECS metrics on task level and also display count of running Amazon ECS tasks, their total memory and vCPU usage.
You can also create your own custom dashboard using PromQL by creating a custom dashboard and adding a panel connecting AMP as the data source.