Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (5.6k points)
I have 2 metrics say m1 and m2 on my logs which will provide the sum of some patterns, Now I wanted to add math expression in metric to sum these metrics so I did SUM([m1,m2]), but it is not giving me the result.

Can someone help me to find out if I'm missing something here?

1 Answer

0 votes
by (12.4k points)

SUM() function will sum up values per data point. 

You can update the metric filter on the logs to emit the value 0 as default if no Failed events are encountered. And then add a new expression to the graph, FILL(m1,0), with ID eg.'e3' which will give a continuous line with zeros when there are no failures and the number of failures in case of failures. Then you can update your SUM expression to SUM([m2,e3]), you can do this on both of your metrics.

Do you want to master AWS, then do check out the AWS Certified Solutions Architect Professional training by Intellipaat.

You can also refer to the below video tutorial to know more about AWS CloudWatch.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Apr 2, 2020 in AWS by Amenda (1.4k points)
0 votes
1 answer
asked May 26, 2020 in AWS by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked May 26, 2020 in AWS by Sudhir_1997 (55.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...