Replies: 3 comments 1 reply
-
Hi @fhmlsml thanks for reaching out. I don't know what the issue might be here — do you get an error when running your code? If you view the logs (via adding |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
This is also an issue for me. Logging the boto3 interaction, as stated above, shows no issues. The response comes back with a 200 and no validation issues. Cloudtrail shows no validation issues with the requests to the API. I can clearly see the payload sending in new metrics inside the widgets but AWS will not update the dashboard. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am experiencing an issue with a Boto script that I am using to update metrics in a dashboard. Specifically, the script is not updating the metrics (widget) automatically when a new instance appears.
The script is supposed to automatically detect when a new instance appears and add its metrics to the existing dashboard. However, this is not happening, and I have to manually add the new instance's metrics to the dashboard (*edit the
dashboard source
json editor and add theoutput json text
from my code manually to it.Dashboard source
Here's my code, i followed this tutorial and adjust the script for my needs
https://aws.amazon.com/blogs/mt/update-your-amazon-cloudwatch-dashboards-automatically-using-amazon-eventbridge-and-aws-lambda/
However, If i copy the result from
all_widgets
and updated it manually indashboard source
cloudwatch console, it worksis this kind of bug or something ? thanks
Beta Was this translation helpful? Give feedback.
All reactions