简体   繁体   English

如何在AWS实例上设置警报以在数据分析完成时通知我?

[英]How do I set up alerts on AWS instances to let me know when my data analysis is complete?

I've got a sizable data set that I'd like to analyze in the cloud. 我有一个相当大的数据集,我想在云中进行分析。 Since server costs are high for the top tier AWS instances, I'd like to receive an alert — preferably by email — when the computation is complete. 由于顶级AWS实例的服务器成本很高,因此我希望在计算完成后收到警报(最好通过电子邮件)。

I'm relatively new to working with AWS, so was wondering what the best way to do so may be. 我对使用AWS相对陌生,因此想知道这样做的最佳方法是什么。 Appreciate the input! 感谢输入!

You can send a message via Amazon SNS. 您可以通过Amazon SNS发送消息。 You should be able to run shell commands from your Notebook. 您应该能够从Notebook中运行Shell命令。

To send an SMS message, use: 要发送短信,请使用:

aws sns publish --phone-number +61123456789 --message 'Finished!'

To notify via other means: 通过其他方式通知:

  • Create an Amazon SNS topic 创建一个Amazon SNS主题
  • Subscribe to the topic using your preferred method (eg email) 使用您喜欢的方法(例如电子邮件) 订阅主题

Then, to send a message to the topic, which will then be forwarded to all subscribers: 然后,向主题发送消息,然后将其转发给所有订阅者:

aws sns publish --topic-arn XXX --subject 'Finished!' --message XXX

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 CSV 数据插入 AWS RDS MySQL DB 时出现错误消息 1054“'字段列表'中的未知列。请告诉我如何解决此错误 - When inserting CSV data into AWS RDS MySQL DB getting errorMessage 1054 "Unknown column in 'field list'. Please let me know how to fix this error 当我不知道要花多长时间时,如何显示QProgressDialog? - How do I get my QProgressDialog to show up when I don't know how long it will take? 如何使用 Flask 为 500 错误设置 email 警报? - How do I set up email alerts for 500 errors using Flask? 如何使用Seaborn和Pandas数据集修复Barplot错误(它不会让我对变量进行barplot) - How to fix Barplot errors using Seaborn with a Pandas Data Set (It Will not let me barplot my variable) 我 go 如何在 python 中制作一个 discord 机器人,当特定的人加入特定的语音频道时它会提醒我 - How do I go about making a discord bot in python that alerts me when a specific person joins a specific voice channel 谁能告诉我这条线在我的 python 代码中做了什么: - can anyone please let me know what does this line do in my python CODE: 我是 django 的新手,当我尝试 python manage.py runserver 时......我在下面收到一个错误......我现在必须做什么? 请让我知道 - I am new to django and when I am trying to python manage.py runserver... I was getting an error below... what I have to do now? please let me know 如何让我的计算机知道我现在想使用 python 3? - How to let my computer know I want to use python 3 now? 如何让 pip 知道删除 systemd 服务文件 - How do I let pip to know to remove the systemd service file 如何正确设置我的 x 数据以在 Tensorflow 中训练 LSTM model? - How do I set up my x data correctly to train an LSTM model in Tensorflow?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM