Hi, i am only a beginner with GCP so please provide me some explanation. I dont know how to collect data about my instance in ubuntu terminal, than send this collected data like graph on my email, i hope you understand me)
Thanks in advance!
Hello @oleksandr7531 ,Welcome on Google Cloud Community.
You have to configure alerting policy with desired metric and notification channel with your email address or email address where such alert should be routed. Would be also good to install OpsAgent. So lets' brake this step by step:
1. Log in to your Ubuntu machine and follow steps from this tutorial:
2. Once installed, go to Monitoring ( type in Searchbox "Monitoring" )
3. Go to Alerting -> EDIT NOTIFICATION CHANNELS -> Email -> ADD NEW. Provide details like your email and click SAVE
4. Then again go to Alerting -> CREATE POLICY -> Select metric and pick whatever you need
5. Configure alerting policy as you need by changing "Rolling window" or by adding filters.
6. Then go to Configure trigger -> Pick your condition types and threshold
7. Next go to Notifications and name -> Pick notification channel. Check "Notify on incident closure"
8. Provide alert policy name. Severity and Documentation are optional, but it's good practice to fill out them.
9. Click CREATE POLICY.
10. Congratz, your policy has been created 🙂
Monitoring documentation : https://cloud.google.com/monitoring/docs/monitoring-overview
--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost
Thank you so much, i’ll try)