Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lambda CloudWatch Metric results are empty

I want to monitor my lambda function. I am able to see CloudWatch logs from Logs menu but I want to see monitoring results from Lambda console. When I click on the monitoring tab all the graphs are empty and it says that "No data available". What should I do to be able to see CloudWatch metric results?

enter image description here

like image 629
Nil Avatar asked Feb 22 '19 14:02

Nil


People also ask

Why does CloudWatch show insufficient data?

Because the data points are not successfully being delivered to CloudWatch, the alarm can't retrieve any data points for those evaluation periods. This triggers an INSUFFICIENT_DATA state. After recovering connectivity, the application sends the backlog of data points, each one with its own timestamp.

How long does it take for CloudWatch metrics to appear?

When you create a metric, it can take up to 2 minutes before you can retrieve statistics for the new metric using the get-metric-statistics command. However, it can take up to 15 minutes before the new metric appears in the list of metrics retrieved using the list-metrics command.

How long does it take for CloudWatch metrics to update?

By default, metrics are stored at one-minute resolution in CloudWatch.

How do you get Lambda invocation count?

Invocation metrics are binary indicators of the outcome of an invocation. For example, if the function returns an error, Lambda sends the Errors metric with a value of 1. To get a count of the number of function errors that occurred each minute, view the Sum of the Errors metric with a period of 1 minute.


1 Answers

Had this problem even though a specific version of the function was already selected (make sure you are NOT looking at the "unqualified" version of the function).

Had to click the below link to finally see the monitoring data.

enter image description here

This was probably needed because the function is in a different region than where invocations happened.

like image 114
M3RS Avatar answered Sep 30 '22 17:09

M3RS