aws-samples / aws-batch-runtime-monitoring

Serverless application to monitor an AWS Batch architecture through dashboards.
MIT No Attribution
56 stars 17 forks source link

AWS Batch custom dashboards do not display any data #19

Open dehlavio opened 1 year ago

dehlavio commented 1 year ago

The following custom dashboards return no data in a client's PROD environment even when an AWS Batch calculation falls within the selected time horizon:

Batch-ASG-Utilization and Batch-EC2-Capacity dashboards display the correct data and activity.

dehlavio commented 1 year ago

MicrosoftTeams-image (4)

bogdan-largeanu commented 1 year ago

I had a similar issue where I found the Lambdas for those dashboards were erroring out with the following error message:

[ERROR] Runtime.ImportModuleError: Unable to import module 'app': No module named 'aws_embedded_metrics' 
Traceback (most recent call last):

This was caused by the aws_embedded_metrics failing to package correctly. To resolve this issue, I recommend ensuring that you are using Python 3.9 and then running "sam build" ahead of sam deploy --guided.

wangweichao2020 commented 4 months ago

I had a similar issue where I found the Lambdas for those dashboards were erroring out with the following error message:

[ERROR] Runtime.ImportModuleError: Unable to import module 'app': No module named 'aws_embedded_metrics' 
Traceback (most recent call last):

This was caused by the aws_embedded_metrics failing to package correctly. To resolve this issue, I recommend ensuring that you are using Python 3.9 and then running "sam build" ahead of sam deploy --guided.

I got a same issue, but I've already been using python 3.9 and run sam build first. it doesn't work.