1

I've created dashboard for a service deployed to Fargate using the following:

Namespace
AWS/ECS
Metric name
CPUUtilization

Both Average and Max can be viewed but neither of these is that useful. Max is really high and Average is really low.

When choosing p99 from the drop-down selector no data is returned and nothing is plotted on the chart. Is it just a case that p99 isn't supported by CPUUtilization metric on Fargate?

Is there a way to get this stat manually on the dashboard, and added to an Alarm as a threshold?

user45097
  • 561
  • 2
  • 7
  • 16
  • If I'm understanding this [AWS stats definitions page](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Percentiles) correctly, `p99` is not available for Fargate. If this is the case then what function should be used to interpret and alarm on CPU/Mem etc? – user45097 Jan 27 '23 at 07:36
  • Using Fargate Container Insights shows CPUUtilization in units and the p99 selector can be selected and data plotted on the chart. However, the y-axis doesn't show a percentage. How can this be interpreted? – user45097 Jan 27 '23 at 07:57
  • Based on the definitions page I'd interpret that as a bug tbh. Sounds like you shouldn't be able to select p99 on that page – Fermin Jan 27 '23 at 07:59
  • Good point @Fermin. Do you know what the best function to use is to monitor and alert CPU Utilisation? – user45097 Jan 27 '23 at 08:03
  • use use CPUUtilization Average and it works okay for me. If you navigate to ECS console -> -> "Health and metrics" tab there is a CPU Utilization graph. Expanding that then selecting "View in metrics" shows that it plots CPUUtilization Maximum/Minimum/Average over a 5min period. Is your period too large so it's averaging out low? – Fermin Jan 27 '23 at 08:56
  • Yes using Avergage seems like the only option now. When the period is 1 minute, the Average and Max show the values on the graph. I guess the period of 1 minute shows a single value? – user45097 Feb 01 '23 at 02:20

0 Answers0