Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the aggregate of two CloudWatch metrics in a single metric?

I want to get average of network input and network output metric as a single metric from Amazon CloudWatch. Is there any way to achieve this or any script or opensource tools available?

like image 760
dkkashyap Avatar asked Apr 22 '15 07:04

dkkashyap


People also ask

Can CloudWatch aggregate data across regions?

CloudWatch does not automatically aggregate data across Regions, but you can use metric math to aggregate metrics from different Regions.

Which of the following distinguish two CloudWatch metrics that are in the same namespace?

The key to distinguishing between Metrics with the same Name are Dimensions: A dimension is a name/value pair that is part of the identity of a metric.


1 Answers

You can use CloudWatch Metric Math AVG function to get the average of two metrics:

The AVG of a single time series returns a scalar representing the average of all the data points in the metric. The AVG of an array of time series returns a single time series. Missing values are treated as 0.

like image 142
Diego Fernández Durán Avatar answered Oct 20 '22 21:10

Diego Fernández Durán