Jay Carlton
Jay Carlton

Reputation: 1178

Can I plot multiple statistics for one metric on the same axis in a Cloudwatch Dashboard?

I want to look at the min, max, and average statistics for each time interval for a particular custom metric. In this case it's the size of each file my system is ingesting. Currently I can do this in a CloudWatch Dashboard with three separate widgets, one for each statistic:

enter image description here

I'd really prefer to have at least two curves on the same axis. I know how to put two different curves on one widget, but that only appears to support having two different metrics, with the same aggregation function applied.

Interestingly, in the Lambda monitoring view, AWS provides just such a plot for Invocation Duration: enter image description here

Upvotes: 14

Views: 6561

Answers (2)

Kashyap
Kashyap

Reputation: 17504

Under Actions column, there is a button to Duplicate a metric. Just click on it, it'll add the a copy of that metric to same graph. Then you can tweak Statistic for this copy. E.g. below I have min, max and avg of CPUUtilization.

enter image description here

Upvotes: 21

Jay Carlton
Jay Carlton

Reputation: 1178

One workaround would be to create duplicate dummy metrics for the same data, then overlay them. The only problem is you'd still be stuck hard-coding the statistic for each curve, so the Average of the Min metric would work out to the min of the average. Not worth it.

Upvotes: -1

Related Questions